What is the difference between callling a RequestDispatcher
using ServletRequest and ServletContext?
Answer Posted / mahesh
We can give relative URL when we use ServletRequest and not
while using ServletContext.
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What is the difference between get and post methods?
what do you understand by url rewriting?
What are the life cycle methods of the servlet?
Which is better jsp or servlet?
How can we perform any action at the time of deploying the project?
What methodology can be followed to store more number of objects in a remote server?
If some new data has entered the database, explain how can a servlet refresh automatically?
What is the workflow of a servlet?
Explain the concept of ssi ?
What is the difference between encodeRedirectUrl and encodeURL?
Write a simple servlet program to print the contents of html.
How does Cookies work in Servlets?
Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?
what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?
Given the request path below, which are context path, servlet path and path info?