This is in the archive - try this
<%!
void someMethod(int aParameter)
{
// my code goes here
}
%>
you can then call this from within your code
<%
someMethod(4242);
%>
Kevin Jones
DevelopMentor
www.develop.com
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Richard Lawson
> Sent: 02 March 2000 19:29
> To: [EMAIL PROTECTED]
> Subject: creating a method within a jsp page
>
>
> 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
===========================================================================
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