The whole JSP gets converted into a servlet with only a single method named service() in that servlet class. So the session, out, etc JSP variables gets declared and initialized in the service() method only. The function which you define in <%! %> tags gets created outside the service method. Now I guess you can understand why you get error when you try to access those objects in the function. You need to always pass this objects to your function in JSP.
-----Original Message----- From: Manuel Rodriguez Diaz [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 02, 2002 2:59 PM To: [EMAIL PROTECTED] Subject: 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