try this
<%!
public void fun(JspWriter out){
try{
out.println("Hi I am in function");
}
catch(Exception e){
out.println("Error");
}
}
%>
<BODY>
<%
fun(out);
%>
</body>
Vaishali
Reliance Ind Ltd
Ahmedabad
"Sandeep Kumar
Agrawal, Noida" To: [EMAIL PROTECTED]
<[EMAIL PROTECTED] cc:
CLTECH.COM> Subject: Re: Problemas con la
recursividad
Sent by: A mailing
list about Java
Server Pages
specification and
reference
<JSP-INTEREST@JAVA
.SUN.COM>
07/03/02 01:00 PM
Please respond to
A mailing list
about Java Server
Pages
specification and
reference
Hi!!
are you talking of Javascript/vbscript code?
If that is the case, you wont be able to access implicit jsp objects like
Sesssion because
client-side scripts get excuted on client side only. While these objects,
which you are talking of,
are available when the page is executed on server side.
Hope this helps.
Regards,
Sandeep
-----Original Message-----
From: Francisco Manuel Mart�nez Su�rez [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 02, 2002 3:14 PM
Subject: Re: Problemas con la recursividad
Could you pass these objects as arguments inside your recursively function?
I have to do this when I use beans which use session and out objects...
Fran
> -----Mensaje original-----
> De: Manuel Rodriguez Diaz [SMTP:[EMAIL PROTECTED]]
> Enviado el: martes 2 de julio de 2002 10:29
> Para: [EMAIL PROTECTED]
> Asunto: Problemas con la recursividad
>
> Hi,
> I have write a function inside the <%! %> tags of a JSP page that is
> called recursivelly.
> The fact is that i'm not able to access implicit JSP objects like
> session or out.
> �Is that true or am i doing something wrong?
> �How can i bypass this problem?
>
> Thankyou
>
>
==========================================================================
> =
> 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://archives.java.sun.com/jsp-interest.html
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.jsp
> http://www.jguru.com/faq/index.jsp
> http://www.jspinsider.com
=====================================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://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com
==========================================================================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://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com