Not in the 0.9 spec (which is really unfortunate, but hey, it wasn't
considered a full spec) but there is in the JSP1.0 spec.
The special tags <%! ..... %> place the code between them into the
generated servlet, allowing you to create member functions, and variables.
You should definitely take a look at:
http://java.sun.com/products/jsp/syntax.pdf
Robert.
Is there a way to add methods, written in jsp, to a jsp file, other than
by calling beans?
ex: <% here is my jsp...
int x = 2;
out.println( xsqr( x ) );
%>
<% // and here is my jsp method...
public int xsqr( int x )
return ( x * x );
%> // which of course doesn't work... :^?
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html