struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lázaro Miguel Fung <lf...@desliang.com>
Subject Re: [SCAFFOLD] How get session in ProcessActionHelp class
Date Thu, 18 Sep 2003 14:21:48 GMT
I will check that.

Thanks Ted.

----- Original Message ----- 
From: "Ted Husted" <husted@apache.org>
To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
Sent: Wednesday, September 17, 2003 4:09 PM
Subject: Re: [SCAFFOLD] How get session in ProcessActionHelp class


> The ProcessAction is designed to pass the ActionForm object down to the
> business layer. The simplest thing is to make the object part of the
> ActionForm. The best place to do something like that is the reset
> method. It is passed the HttpServletRequest, so you have access to just
> about everything public in the application. Just put a bookId property
> on your ActionForm and populate it through reset. For examples, see the
> reset method of the BaseForm in the same package.
>
> HTH, Ted.
>
> Lázaro Miguel Fung wrote:
>
> > Hi.
> >
> > How I can get a session object in a ProcessActionHelp class,
> >
> > I have this session object: bookId
> >
> > How I can use this session inside a ProcessAction.
> >
> > TIA
> > LFung
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
>
> -- 
> Ted Husted,
>    Junit in Action  - <http://www.manning.com/massol/>,
>    Struts in Action - <http://husted.com/struts/book.html>,
>    JSP Site Design  - <http://www.amazon.com/exec/obidos/ISBN=1861005512>.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message