Thanks a lot James.
It worked here..

But I'm getting some error messages when I call methods into this new
function inserted in the bottom of the source code.
Do I have to include again the methods I wish to use in the function?




> > 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
>

===========================================================================
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