Best way to created methods in JSPs is to use the decleration tag.
<%!
public String calculateValue(int var1, int var2)
{
//do stuff
}
%>
<%
int t1=1;
int t2=2;
calculateValue(t1, t2);
%>
--- Richard Lawson <[EMAIL PROTECTED]> wrote:
> Hi all,
> I have looked at the faq and syntax docs, and have been lurking on this list
> for a while but I don't see how one makes a simple method within a jsp page.
> (not in a compiled class or servlet that you call)
>
> I'm using JRUN. I can call my middle tier classes and servlets without too
> much trouble, but I need to have some funtions that belong on the page (with
> the ui) and not in the middle tier. My question is: How do I do this?
>
> Richard Lawson
> USWeb /CKS
> [EMAIL PROTECTED]
>
> ===========================================================================
> 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
>
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.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