What is the difference between callling a RequestDispatcher
using ServletRequest and ServletContext?
Answers were Sorted based on User's Feedback
Answer / mahesh
We can give relative URL when we use ServletRequest and not
while using ServletContext.
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / 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 |
Explain in detail about applet to servlet communication?
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?
Explain the differences between jsp and servlet.
How is the get () method different from the post() method?
Are Servlets by default thread safe or not? thanks in advance regards Sudhakar
Explain the concept of ssi ?
Is servlet a controller?
How can we perform any action at the time of deploying the project?
Can threads be used in Servelet?
When a client request is sent to the servlet container, how does the container choose which servlet to invoke?
Why the concept of single thread model interface is used?
Explain jsessionid?