How many ways are available to ger RequestDispatcher object?
Answer Posted / rice
There are two ways to get RequestDispatcher object in the
servlet.
1. calling the getRequestDispatcher(String path) method on
ServletRequest.
RequestDispatcher rd=request.getRequestDispatcher(String path);
2. By getRequRequestDispatcher(String path) method on
ServletContext.
RequestDispatcher rd=context.getRequestDispatcher(String path);
| Is This Answer Correct ? | 17 Yes | 0 No |
Post New Answer View All Answers
How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255
How would you create deadlock on your servlet?
What is a server side include (ssi)
What is a servlet engine?
Why servlet is faster than jsp?
How do I use cookies to store session state on the client?
What is the difference in between the httpservlet and generic servlet?
Where do you define dispatcherservlet?
How are filters?
What are some advantages of storing session state in cookies?
What is a deployment descriptor?
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 ?
Can you create a deadlock condition on a servlet?
In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify
What is the purpose of dispatcherservlet properties?