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.
ActionForm is just a regular Java class that is stored in request or session or app context object depending on the scope that you set in the struts-config.xml file. The name that you use to define a form bean in the struts-config.xml file is the key under which the form bean is stored in respective scope. Struts uses the same objects that are defined in servlet spec. The bottom line: the reference is already saved for you, you do not need to create another reference to an action form. Michael. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]