The attribute in org.apache.struts.taglib.html.BEAN is set by the <html:form> tag. This is how the other <html:> tags know which form bean they are dealing with.
I'd be interested to know why the other html tags are made aware of the form bean this way, rather than directly asking their enclosing form tag. Any ideas anyone? The only thing I can think of is that it means that dynamically included pages can still use the html tags to reference the parent page's form. Paul > -----Original Message----- > From: Daffin, Miles (Company IT) > [mailto:[EMAIL PROTECTED] > Sent: 26 November 2004 11:00 > To: Struts Users Mailing List > Subject: Why does a Form Bean declared as session-scope appear on both > session and request? > > > Hi All, > > If I declare my bean scope="session" (struts-config.xml) the same > instance of it turns up on both the request and the session: > > Session key: <bean name from struts-config.xml> > Request key: org.apache.struts.taglib.html.BEAN > > If I then change the declaration to scope="request" the same > bean turns > up twice on the request, under the key > org.apache.struts.taglib.html.BEAN and > <bean name from struts-config.xml> keys. > > What's going in here? > > Thanks. > > -Miles > > Miles Daffin > Morgan Stanley > 20 Cabot Square | Canary Wharf | London E14 4QA | UK > Tel: +44 (0) 20 767 75119 > [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > -------------------------------------------------------- > > NOTICE: If received in error, please destroy and notify > sender. Sender does not waive confidentiality or privilege, > and use is prohibited. > > Axios Email Confidentiality Footer Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message, and notify us immediately. If you or your employer does not consent to Internet email messages of this kind, please advise us immediately. Opinions, conclusions and other information expressed in this message are not given or endorsed by my Company or employer unless otherwise indicated by an authorised representative independent of this message. WARNING: While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted via electronic mail attachments we cannot guarantee that attachments do not contain computer virus code. You are therefore strongly advised to undertake anti virus checks prior to accessing the attachment to this electronic mail. Axios Systems Ltd grants no warranties regarding performance use or quality of any attachment and undertakes no liability for loss or damage howsoever caused. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]