Answer Posted / sudhakar
import javax.servlet.*;
import javax.servlet.http.*;
public class TestDispatcher extends HttpServlet throws
IOException, ServletException {
public void doGet(HttpServletRequest request,
HttpServletResponse response) {
RequestDispatcher dispatcher =
request.getRequestDispatcher("/template.jsp");
dispatcher.forward(request, response);
}
}
Is This Answer Correct ? | 17 Yes | 0 No |
Post New Answer View All Answers
What are the important functions of filters?
What is the difference in between the httpservlet and generic servlet?
How to find whether a parameter exists in the request object?
What is Servlet API used for connecting database?
Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?
What is Client-Server Computing?
What are the ways to handle multi-threading in servlets?
How can you push data from an Applet to a Servlet?
How the typical servlet code look like ?
What are the life cycle methods of the servlet?
Why is Servlet so popular?
Difference between doget and dopost?
What are different methods of session management in servlets?
What do you mean by the servlet chaining?
What is the procedure of invoking different servlet in a different application?