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 many jsp scripting elements are there and what are those?
What is Servlets and explain the advantages of Servlet life cycle?
Explain jsessionid?
What is servlet interface?
How the typical servlet code look like ?
request parameter how to find whether a parameter exists in the request object?
What are the important functions of filters?
Name the packages that work with servlet?
What is called a session?
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 servletconfig?
What is meant by a web application
What is SingleThreadModel interface?
What is pure servlet?
Explain url encoding?