users@glassfish.java.net

Re: gettting "code too large for try statement" error in Sun One 8.1 Server

From: Bobby Bissett <Robert.Bissett_at_Sun.COM>
Date: Thu, 28 Jan 2010 12:04:44 -0500

>
> Try breaking up your JSP into smaller pages and include them via
> jsp:include, or try refactoring some of your JSP's content into custom
> tags.

An alternative to jsp:include is:
<%_at_include file="/WEB-INF/jspf/some_example.jspf" %>

You can use this if the file you're including is static, and it will
mean fewer calls to the server. Some info: http://java.sun.com/products/jsp/tags/11/syntaxref11.fm6.html

Cheers,
Bobby