How to pass a requrest object of one servlet as a request
object to another servlet?
Answer Posted / priya
in an any web application when we have to pass object from
one servlet to another then we use request dispatcher.the
request dispatcher is used by using request.setAttribute
("key",value) in the first servlet and request.getAttribute
("key")in the second servlet.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is the capacity the doget can send to the server?
What is a servlet context?
What is the difference between sendredirect() and forward() in a servlet?
What is the difference between the include() and forward() methods?
What is a deployment descriptor?
How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255
Describe in brief RequestDespatcher?
What is http servlet?
What’s the use of the servlet wrapper classes??
Which method of the httpservletrequest object is used?
Why do we need a constructor in a servlet if we use the init method?
What methods do you use in servlet - applet communication?
Explain session tracking and its importance?
What is the difference between portlet and servlet?
What do you mean by annotations in servlet?