All the code that you write that is send to the client browser is given to
jsp service method. You can write a function in following way and it will
become the member function of the resulting jsp.

<%!   void function1()
{


}

%>

> ----------
> From:         Sandy Tiu
> Reply To:     Sandy Tiu
> Sent:         Saturday, February 19, 2000 12:48 AM
> To:   [EMAIL PROTECTED]
> Subject:      adding methods in a JSP page
>
> Is it possible to add methods inside a JSP page.
> i.e.
>
> <%
>
> int maxRow = 2;
> int maxIdx = 0;
> dbAccess();
>
>
>
> private void dbAccess(){
>    ....
> }
>
> %>
>
> Thanks.
>
> Sandy Tiu
> Bank United
> Emerging Technologies Engr.
>
>
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> FAQs on JSP can be found at:
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>
>
>
Visit http://www.niit.com for eCommerce Solutions.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to