N
Neil
I have previosuly written a jsp page that used the syntax <%! to
declare some functions and it has worked fine in the past. I have got
a new computer and put Tomcat 5.0.29 on and now the pages don't work,
it gives the error:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 108 in the jsp file: /index.jsp
Generated servlet error:
C:\Program Files\Apache Software Foundation\Tomcat
5.0\work\Catalina\localhost\_\org\apache\jsp\index_jsp.java:132: ')'
expected
{
^
The corresponding line in the code is:
<%!
public TreeNode buildTree(ResultSet results, TreeNode root, String
root)
{
I have removed the <%! blocks but then it gives me more errors about
unexpected declaration, it wants to see a ;
Has something changed in the spec about these kinds of declarations?
Thanks in advance.
declare some functions and it has worked fine in the past. I have got
a new computer and put Tomcat 5.0.29 on and now the pages don't work,
it gives the error:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 108 in the jsp file: /index.jsp
Generated servlet error:
C:\Program Files\Apache Software Foundation\Tomcat
5.0\work\Catalina\localhost\_\org\apache\jsp\index_jsp.java:132: ')'
expected
{
^
The corresponding line in the code is:
<%!
public TreeNode buildTree(ResultSet results, TreeNode root, String
root)
{
I have removed the <%! blocks but then it gives me more errors about
unexpected declaration, it wants to see a ;
Has something changed in the spec about these kinds of declarations?
Thanks in advance.