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.