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
In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify
What is servlet and how it works?
What is cgi?
How httpservlet is different from the genericservlet?
Which HTTP method is non-idempotent?
Write a program to show the functionality of doget and dopost method?
How do you define a servlet?
What is http servlet?
How the typical servlet code look like ?
Is java servlet still used?
What are the types of protocols supported by httpservlet ?
What is servlet and its types?
Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?
Who is responsible to create the object of servlet?
Difference between forward() method and sendredirect() method ?