You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by ro...@zzict.nl on 2000/12/14 08:48:55 UTC
declaring a class in JSP
Yo dudes,
I have this JSP:
<% private class Something{}
%>
this get's rejected by Jasper.
Is there any reason why?
Sloot.
RE: declaring a class in JSP
Posted by Dave Newton <da...@solaraccess.com>.
> > Yo dudes,
> > I have this JSP:
> > <% private class Something{}
> > %>
> You forgot the Exclamation Mark (!)
> The correct Syntax is:
> <%! private class Something{}
I thought he forgot the semicolon~it's legal to do a declaration
without the ! (isn't it?! :)
Dave
Re: declaring a class in JSP
Posted by Thomas Schreiner <ts...@infomatec.de>.
----- Original Message -----
From: <ro...@zzict.nl>
To: <to...@jakarta.apache.org>
Sent: Thursday, December 14, 2000 8:48 AM
Subject: declaring a class in JSP
> Yo dudes,
> I have this JSP:
> <% private class Something{}
>
> %>
You forgot the Exclamation Mark (!)
The correct Syntax is:
<%! private class Something{}
%>
Thomas