you have to pass the bean along to the function. it is not global. > -----Original Message----- > From: Jan Arenö [SMTP:[EMAIL PROTECTED]] > Sent: 24 May 2002 03:58 > To: [EMAIL PROTECTED] > Subject: Use of Bean in function > > Hi, I have a function problem > > I have a JSP page that uses a bean > > <jsp:useBean id="txt" scope="session" class="LanguageText"/> > > I can access the bean as I want in the page, but if I write a function on > the page it dosn't work > > <%! > public void writeToPage(JspWriter out) > { > out.println("Test : "+ txt.getVariable("text")); > } > %> > > I cant make it work. The LanguageBean is a ResourceBundle and works fine > in > rest of the page. Do I have to pass the Bean along to the function? Isn't > it > global? > > Thanx for any help > > ========================================================================== > = > 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
-- ********************************************************************** The Truworths e-mail facility may not be used for the distribution of chain letters or offensive email. Truworths hereby distances itself from and accepts no liability for the unauthorised use of its e-mail facility or the sending of e-mail communications for other than strictly business purposes. Truworths furthermore disclaims liability for any unauthorised instruction for which permission was not granted. =========================================================================== 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