You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Paul McCulloch <pa...@axiossystems.com> on 2004/01/29 11:58:53 UTC
RE: Can i access session or request object from a bean which is A
ctionform variable
My base ActionFrom has a session attribute on it. In the base reset() method
I set the ActionForm's session to the current session.
I considered having a request attribute on the from bean, but that looked
like a problem waiting to happen if I used session scoped forms.
Paul
> -----Original Message-----
> From: Yajamanyam Venugopal
> [mailto:venugopal.yajamanyam@consultant.volvo.com]
> Sent: 28 January 2004 17:50
> To: struts-user@jakarta.apache.org
> Subject: Can i access session or request object from a bean which is
> Actionform variable
>
>
>
> Hi
>
> I have a nested bean in my ActionForm.
> Is there any way to access the session object or HttpRequest
> from that nestedbean.
>
> class MyActionForm extends ActionForm{
>
> private Tree myTree;
> }
>
> class Tree{
>
> I would like to access session or http request
> from this bean????
>
> }
>
> Thnaks in advance,
> Venu
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
**************************************
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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org