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 servlet instance?
Explain the difference between servlet and cgi?
Define servlet mapping?
What is the procedure for initializing a servlet?
How can we refresh automatically when new data has entered the database?
Can you explain in detail 'javax.servlet' package?
What’s the use of the servlet wrapper classes??
What is http servlet?
What is the difference between Servlets and Applets?
What are the jobs performed by servlets?
What do you mean by mime type?
What are advantages of servlets over cgi?
Why session tracking is needed?
What are some advantages of storing session state in cookies?
Can you create a deadlock condition on a servlet?