adspace


How can we forward the request from jsp page to the servlet?

Answer Posted / Ayushi Singh

To forward a request from a JSP page to a Servlet, you can use the RequestDispatcher object. The following code demonstrates an example: <% PageContext pc = request.getPageContext(); RequestDispatcher rd = pc.getRequestDispatcher("/ServletName"); rd.forward(request, response); %>

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i need the source code for opening a word document in java

2309