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.java:106: 'try'
without 'catch' or 'finally'.
C:\Tomcat\jakarta-tomcat-4.0\work\localhost\StoryWeb\All$jsp.java: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