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
What is the difference between Difference between doGet() and doPost()?
What is the purpose of dispatcherservlet properties?
Describe some assignments that are executed by servlet container?
What is called servlet container?
Why servlet is mostly used?
Why is servlet used?
What are the life cycle methods of a servlet?
What is setattribute in servlet?
How servlets are deployed in java?
Can servlet have a constructor ?
How many servlet objects are created?
A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?
What is the disadvantage of cookies?
How do you create a cookie using servlet?
What are different Authentication options available in Servlets.