Solved

ServletRequest Interface

Posted on 2014-03-26
1
283 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
servlet example issue 6 46
how to see all occupied ports on windows 10 laptop 15 76
Desingning Refactoring existing code 2 26
login form jsp example 2 37
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
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 about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

860 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