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 is a servlet context?
What's the difference between servlets and applets?
What is the life-cycle of servlets?
Which is better jsp or servlet?
how to link html file to sevlet file.one name is textbox,c&c++ is cheakbox,bc&mca is radio button and one submit buttonis ok why in this programme use in servelt file
What are sessions in servlets?
Is it possible to have a constructor inside the servlet?
What are the two important api's in for servlets?
Explain the difference between get and post method in servlet?
Name the different ways of session tracking.
Difference between httpservlet and generic servlets?
How to get the path of servlet in the server?
What is session?
Is dispatcher servlet a singleton?
What is servlet api used for conneting database?