Double check, I've had the compiler through in an extra try for not apparent reason when there was some other problem in jsp. Sorry, I cant' remember the exact situation.
> -----Original Message----- > From: A mailing list about Java Server Pages specification > and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Means, Garann R. > Sent: Friday, January 25, 2002 4:43 PM > To: [EMAIL PROTECTED] > Subject: Try/catch errors from include file > > > Hi again, > > I have a simple application, one jsp as an include in the > other, with a form > on the outer page that calls a servlet when it's submitted. > The outer page > loads without error up to the point of the jsp:include tag, > but the inner > page gives me these errors: > > org.apache.jasper.JasperException: Unable to compile class for JSP > C:\Tomcat\jakarta-tomcat-4.0\work\localhost\StoryWeb\All$jsp.java:98: > 'catch' without 'try' > } catch (Throwable t) { > > C:\Tomcat\jakarta-tomcat-4.0\work\localhost\StoryWeb\All$jsp.j > ava:106: 'try' > without 'catch' or 'finally'. > C:\Tomcat\jakarta-tomcat-4.0\work\localhost\StoryWeb\All$jsp.j > ava:106: '}' > expected. > > 3 errors > > I went and looked at the compiled jsp, and it's fine - one 'try', one > 'catch', and one 'finally'. The files ends at line 105. The > 'try' in the > file that includes this one occurs before the include file is > called. I will > include the jsp file itself below this message. > > Can anyone help? > Thanks! > > <%@ page session="true" import="java.util.*" %> > <% > Vector allLines = (Vector) session.getValue("book.story"); > if (allLines != null && (allLines.size() > 0)) { > for (int i=0; i<allLines.size(); i++) { > %> > <input type='radio' name='radLocs' value='<%= > i %>'> > > <%= allLines.elementAt(i) %> > <% } %> > <input type='radio' name='radLocs' value='<%= (i+1) %>'> > > ============================================================== > ============= > To unsubscribe: mailto [EMAIL PROTECTED] with body: > "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set > JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com > =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
