How do you stop all futher processing in a JSP page?

Christopher Longo

You could always just stuff a return in a scriptlet.

<%   String action = (String)request.getParameter("action");

This should work with all JSP implementations.

Keep in mind that what you are doing in essence is returning from the middle of a Servlet service() method.

I always recommend use of "if" and "else" statements control the flow of the JSP page, rather than bluntly returning.

Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact