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

Write a servlet to upload file on server.

600


How can we create deadlock situation in servlet?

853


What are different methods of session management in servlets?

780


What is setattribute in servlet?

558


What is a server side include (ssi)

570






What is java servlet session?

533


What is Client-Server Computing?

1899


How can we refresh automatically when new data is entered into the database?

600


Explain the role of dispatcherservlet and contextloaderlistener.

610


When a servlet accepts a call from a client, it receives two objects. What are they?

771


Explain the difference between jsp and servlet?

592


How to find whether a parameter exists in the request object?

668


Given the request path below, which are context path, servlet path and path info?

549


Can you refresh servlet in client and server-side automatically?

624


Define context initialization parameters.

576