How many ways are available to ger RequestDispatcher object?

Answer Posted / venkat

there are two ways.


RequestDispatcher rd=req.getRequestDispatcher("\a.jsp");

RequestDispatcher rd=sc.getRequestDispatcher("\a.jsp");

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain servlet.

566


explain the advantages of servlet life cycle?

555


Can we get PrintWriter and ServletOutputStream both in a servlet?

656


what is multiple server?

1756


What is the life cycle of a servlet?

782






What is called a session?

621


What are the differences between servlet context vs servlet config?

575


What is cookies in servlet with example?

518


What is a servlet?

608


What is cgi?

594


What’s the difference between sendredirect and forward methods

564


Why are http servlets used in programming?

546


Explain the working of service() method of a servlet.

503


Explain web application directory arrangement?

586


What is the difference between Difference between doGet() and doPost()?

754