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
Why the concept of single thread model interface is used?
What are the different session tracking techniques?
In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify
What is cookies in servlet with example?
Explain servlet events?
What are the various ways of session supervision in servlets?
What mechanisms are used by a Servlet Container to maintain session information?
What is java servlet session?
What is servlet and its life cycle?
The code in a finally clause will never fail to execute, right?
Which java application server is the best?
How many servlet objects are created?
How can the session in servlet be destroyed?
How do we translate jsp?
Can servlet have a constructor ?