Howdy, You need the useBean tag in every JSP page where you want to use the Bean. You only need one myBigBean.init tag used the first time you access the bean.
Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Andoni [mailto:[EMAIL PROTECTED] >Sent: Wednesday, September 17, 2003 9:56 AM >To: Tomcat Users List >Subject: Session level beans. > >Hello, > >I have a lot of JavaBeans that are initialised in my login page using ><java:useBean> tags. >The scope of these beans is set to session thus: > ><jsp:useBean id="myBigBean" scope="session" >class="net.mysite.client.BigBean"> > <% myBigBean.init(application, session); %> ></jsp:useBean> > >now if I use the variable myBigBean elsewhere in my site should I be able >to access this bean? >Or is it necessary for me to have a tag identifying this bean in *every* >.jsp like this: > ><jsp:useBean id="myBigBean" scope="session" >class="net.mysite.client.BigBean"> > <% myBigBean.init(getServletContext(), session); %> ></jsp:useBean> > >The way I have it at the moment I have included these tags but I have been >told they are not necessary! But when I remove them and try to access >myBigBean.doSomething() I just get error messages saying myBigBean is >unknown. > >Thanks for any help or pointers to reference info. > >Andoni. > This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]