JSP is just a servlet method, you can just put (whereever necessary) a < % return; % > to abort JSp page processing.
OR,
Create a page called exit.jsp etc. with only this content:
<\%@page language="java"%>
Then EXIT your page this way:
<\% out.flush(); %>
<\jsp:forward page="exit.jsp" />
This works great within dynamically included JSP-pages and outputs the content processed this far.
No comments:
Post a Comment