Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Servlets%20Interview%20Questions%20and%20Answers

Question: 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()?
Answer: Since ServletRequest has the current request path to evaluae the relative path while ServletContext does not.
Is it helpful? Yes No

Most helpful rated by users:

©2024 WithoutBook