struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Husted <>
Subject Re: [SCAFFOLD] How get session in ProcessActionHelp class
Date Wed, 17 Sep 2003 23:09:09 GMT
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.
> LFung
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Ted Husted,
   Junit in Action  - <>,
   Struts in Action - <>,
   JSP Site Design  - <>.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message