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 servletconfig?

542


How to get the actual path of servlet in server?

726


What are the drawbacks of cgi?

562


How can an existing session be invalidated?

655


What is the workflow of a servlet?

714






What is the difference between jsp and servlet life cycle?

681


what is servlet chaining?

617


Difference between forward() method and sendredirect() method ?

580


When to use doget() and when dopost()?

623


How do you run a servlet?

537


What do you mean by chaining in servlet?

566


What is servlet in web technology?

572


What are the types of protocols supported by httpservlet ?

698


How is a servlet implemented in code?

560


Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?

765