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()?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Servlets Interview Questions

What is the use of java servlet api?

0 Answers  


A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?

0 Answers  


hi.... i have problem in running of servlet. i am using Tomcat server in my pc.. The problem is when i am click on strat it will display like below FAIL - Application at context path /first could not be started.. How i can slove the problem.. help plz

3 Answers  


What are setSecure() and getSecure() methods in Cookies?

1 Answers  


What is a generic servlet?

0 Answers  


How to get the actual path of servlet in server?

0 Answers  


What do you mean by servlet?

0 Answers  


Explain the servlet context.

0 Answers  


What are the advantages of cookies?

0 Answers  


What do you mean by default initialization in java servlet?

0 Answers  


Can we override destroy method in servlet?

0 Answers  


how the server will know its the same jsp page?

3 Answers   HCL,


Categories