Answer Posted / bikash khuntia
you can maintain servlet chaining by using:
1. RequestDispatcher
2. include
Step 1: Set the request
request.setAttribute(key,value);
Step 2: Implimanting of RequestDispatcher
RequestDispatcher rsd = getServletContext().
getRequestDispatcher("Servletname");
Step 3: Forward or include the request and response by
rsd.forward(request,response);
rsd.include(request,response);
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
what do you understand by url rewriting?
Explain the difference between servletconfig and servletcontext in servlet?
How to get the actual path of servlet in server?
List out difference between a JavaBean from a Servlet?
What is servlet and its use?
What is the life cycle of a servlet?
What are the objects involved when a servlet receives a call from client?
What is difference between get and post method?
When should you prefer to use doget() over dopost()?
What is java servlet?
Describe servlet?
Can you send an authentication error from a servlet?
Can you call a jsp from the servlet?
What's the servlet interface?
What is the difference between CGI and Servlet?