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


Please Help Members By Posting Answers For Below Questions

What is a web container and what is its responsibility?

527


Tell us something about servletcontext interface.

626


Tell the new features added in servletrequest interface i.e. Servlet 2.4

573


What is the purpose of inter-servlet communication?

589


What are the different methods involved in generic servlet?

553






How is a servlet implemented in code?

566


What is the difference between forward () and sendredirect () functions in servlet? Explain

543


What are the functions of Servlet container?

607


What is the main purpose of java servlets?

583


How does Cookies work in Servlets?

649


How we can create war file in servlet?

657


How to create war file?

611


Which method of the httpservletrequest object is used?

561


Explain the differences between jsp and servlet.

537


What is getservletcontext?

548