Solved

ServletRequest Interface

Posted on 2014-03-26
1
280 Views
Last Modified: 2014-04-24
ServletRequest Interface


An object of ServletRequest is used to provide the client request information to a servlet such as content type, content length, parameter names and values, header informations, attributes etc

I was reading as above. i wonder how the content length, header information, attributes comes under client request information(which is passed to servlet).
please advise
Any links resources ideas highly appreciated. Thanks in advance
0
Comment
Question by:gudii9
1 Comment
 
LVL 35

Accepted Solution

by:
mccarl earned 500 total points
ID: 39957825
The servlet container is what receives the incoming packets of data (via the network) from the client (say a web browser). So it reads these packets to get the "content type, content length, parameter names and values, header informations, attributes" details, then it creates an object (Servlet Request, or more precisely, an object that implements ServletRequest) and populates this object with all these details that came from the incoming data packets. Finally, that object gets passed to the configured servlet, for it to do whatever it needs to do.

Does that clear things up for you?
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now