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 is the process for chaining servlet?
Explain the servlet context.
What do you mean by deployment descriptor?
Is servlet a server side scripting language?
Does servlet have main method?
What is the major difference between servlet and applet?
When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?
Explain the jar and war files in servlet?
What are some advantages of storing session state in cookies?
What is the use of java servlet api?
What are the type of protocols used in httpservlet?
What are some disadvantages of storing session state in cookies?
Explain is servlet mapping?
The code in a finally clause will never fail to execute, right?
What are the types of servlet?