How many ways are available to ger RequestDispatcher object?

Answer Posted / vijay

by two ways we can get the RequestDispatcher object.

1) by using ServletContext.getRequestDispatcher().
2)by using HttpServletRquest.getRequestDispatcher().this
method inherted from ServletRequest.

Is This Answer Correct ?    24 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is cookie in servlet?

592


What is a cookie What is the difference between session and cookie

592


What is the GenericServlet class?

597


Why doesn’t a servlet include main()? How does it work?

631


What do you mean by mime type?

550






What is the purpose of requestdispatcher interface?

611


What do you mean by scope object and what are its types?

566


What is Servlets and explain the advantages of Servlet life cycle?

579


How can we perform any action at the time of deploying the project?

621


What is the major difference between context parameter and context attribute?

593


what is servlet chaining?

623


How do you configure a centralized error handler in servlets?

531


What if you need to span your transaction across multiple servlet invocations?

576


What do you mean by cgi in servlet?

627


What is servlet container?

663