The problem is probably a syntax error such as a forgotten closing "}" or
something like that.
This disrupts the rest of the code when the page gets compiled in a servlet
resulting in a try not being caught.
Double-check the syntax in your jsp code. You can also open the servlet that
Tomcat is trying to generate (see in the work folder of Tomcat), the stack
trace points to the exact location of the problem. It might be easier to
spot the problem in the servlet and then correct the jsp page.
Gilles
> -----Original Message-----
> From: Kyle Burke [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 23, 2001 1:40 PM
> To: Tomcat-Users
> Subject: Include question...
>
>
> Is this possible (see <CODE>)? I have a file that depends on the query
> string for display. Can I have include files based on that query string
> too?
>
> If action=edit show the data in form fields otherwise show it in formatted
> text.
>
> When the files are included vs. when the page is compiled and
> executed (see
> <EXCEPTION>). Thanks peops!
>
>
> <EXCEPTION>
> Unable to compile class
> 'try' without 'catch' or 'finally'
> but I dont have any exception handling in the page.
> </EXCEPTION>
>
> <CODE>
> <%
> if(action.equals("edit")){
> %>
> <%@ include file="includes/edit_staff.jsp"%>
> <%
> }else{
> %>
> <%@ include file="includes/view_staff.jsp"%>
> <%
> }
> %>
> </CODE>
>
>
> Kyle Burke
>