How we abort jsp page from a servlet

Showing Answers 1 - 3 of 3 Answers

Haripriya

  • Dec 23rd, 2005
 

by using <% return;%>

  Was this answer useful?  Yes

kailash

  • Mar 1st, 2006
 

by using the following statement.

RequestDispatcher dispatcher=getServletContext().getServletDispatcher("packagename\jspfilename.jsp");

response.Forward(request,response);

thanks.

  Was this answer useful?  Yes

lhariPrasad

  • Sep 27th, 2006
 

Hi,

The things mentioned above are good, but the best practice, just throw a userdefined exception and let the user know why it is aborted.

Regards,

Hari

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions