What is the difference between callling a RequestDispatcher
using ServletRequest and ServletContext?
Answer Posted / prachetash
RequestDispatcher rd = request.getRequestDispatcher("result.jsp")
This is relative path, becoz there is no "/" slash.Container looks in same logical path.
RequestDispatcher rd = getServletContext.getRequestDispatcher("/result.jsp")
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do cookies work in servlets?
What is the main purpose of java servlets?
When Servlet is unloaded?
What is difference between GenericServlet and HttpServlet?
What do you mean by singlethreadmodel interface?
What’s the use of the servlet wrapper classes??
I Have A Plan to develop a Project in Struts,I want the template of struts project with Hibernate.Canany body provide me the required information?
What is the use of send redirect () method?
What is the difference between genericservlet and httpservlet
What are the types of protocols supported by httpservlet ?
Is servlet synchronized?
How is an application exception handling is done using a servlet?
Which httpsession object is used to view and manipulate information about a session?
What do you mean by default initialization in java servlet?
What are the uses of servlet and what is servlet chaining?