Tuesday, November 29, 2011

What is the difference between the getRequestDispatcher(String path) method of javax.servlet.ServletRequest interface and javax.servlet.ServletContext interface?

The getRequestDispatcher(String path) method of javax.servlet.ServletRequest interface accepts parameter the path to the resource to be included or forwarded to, which can be relative to the request of the calling servlet. If the path begins with a "/" it is interpreted as relative to the current context root.:In case of ServletContext.getRequestDispatacher we must pass the path of the resourse starting with a &
Category:Servlet Interview Questions

No comments:

Post a Comment