How do you pass the data from one servlet to another
servlet?
Answer Posted / abilash
also we can set data in the request too
request.setAttribute("variableName"object);
we can get the value in the next servlet by
Object obj = request.getAttribute("variableName");
| Is This Answer Correct ? | 24 Yes | 18 No |
Post New Answer View All Answers
what is servlet chaining?
What are all the protocols supported by httpservlet?
How to rectify errors in java servlet while compilation?
How do you invoke a servelt?
What is servlet attributes and their scope?
What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?
How do you design microservices?
What is context in servlet?
What is the difference between context parameter and context attribute?
What do you mean by url pattern in servlet?
What do you mean by httpservlet and how it is different from the genericservlet?
Why do we use sendredirect() method?
How do you configure a centralized error handler in servlets?
What exception should be thrown when servlet is not properly initialized?
What is meant by cookies?