Answer Posted / muralisankar
Using RequestDispatcher as follows,
RequestDispatcher rd =
getServletContext().getRequestDispatcher("test.jsp");
rd.forward(req,res);
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Which are the different ways you can communicate between servlets?
What is the difference between the servlets and cgi programs?
Difference between httpservlet and generic servlets?
Explain the custom jsp tags and the beans.
What is the default http method in the servlet?
What are the differences between servlet context vs servlet config?
Explain the working of service() method of a servlet.
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?
What are the functions of the servlet container?
Write the code to get the server information in servlet.
Why servlet is faster than jsp?
Tell the new features added in servletrequest interface i.e. Servlet 2.4
What is SingleThreadModel interface?
What is servlet collaboration?
How do you communicate in between Applets and Servlets?