> How do I create a simply function into a JSP scriptlet? I'm
> developing an application than cannot call a Servlet.

Very easy. You need to put the function definition in the bottom of the
code. It'll look like this:

<%! public String printVomitVolume (boolean isDisgusting) {
        [function statements go here]
}
%>

"public" makes it accessible to the entire page, String is the return
value in this case.

Hope this helps.

- James

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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

Reply via email to