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
what do you understand by url rewriting?
Describe servlet?
What is the difference between sendredirect() and forward() in a servlet?
hi actully i hav form columns with origin and destination names .as like as i need to create one more column with name amount. my requirement is when i select origin and destination columns automatically i need to get amount from database.how can i. please tel me with relative code
What are the types of servlet?
What do you mean by deployment descriptor?
What is the default http method in the servlet?
When servlet is loaded?
Explain the servlet context.
What is the importance of init() method in Servlet ?
What is servlet lazy loading?
What is the structure of the http response
What is servlet invoker?
What is webservlet?
What is the difference between CGI and Servlet?