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 supporting protocol by HttpServlet ?
How to read request headers from servlets?
What are the important functions of filters?
What is httpservlet class?
When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?
What are the uses of servlet
How can we perform any action at the time of deploying the project?
What do you mean by servlet?
How do I use cookies to store session state on the client?
What is difference between get and post method?
What is URL Encoding?
What exactly is a servlet?
What does the term localization refer to?
What are the advantages of servlets over traditional cgi?
What do you mean by servlet context?