Hi
Can I write a function in a JSP file directly?
eg:
<%
void func()
{
out.println("Hello") ;
}
func() ;
%>
If not, what is the reason?
I see that I can do the following:
<%
class myclass
{
void func()
{
out.println("Hello") ;
}
}
myclass x = new myclass() ;
x.func() ;
%>
thanks in advance
liza
__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets