On 12/8/05, Jun Bihag <[EMAIL PROTECTED]> wrote: > I am developing a web application that goes from one page to another > using two different Action classes. The initial page is connected to a > session scoped ActionForm. On the second page which is handled by > another Action (and its corresponding ActionForm that is request > scoped), I want to access the variables on the first session scoped > ActionForm. Is there a way to directly refer to the first ActionForm? > Right now, I save the first ActionForm as a session attribute so that I > can refer to it in the second Action. I hope that I am stating this clearly.
Does it make sense in your app to consolidate the ActionForms and use the same one for both Actions? That way you can use the 'form' that's passed into either Action's execute method, and all the fields will be there. If not, you can just retrieve the first form from session scope. As Michael mentioned, you don't need to store it there, the framework will have done that for you. (If you're not sure what's in scope, include a scriptlet or <c:forEach> to write out the contents of the request and session at the bottom of your JSPs during development.) -- Wendy --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]