hello,
set the scope in the struts-config.xml for the action to have session.
<action path="<name of action>"
type="<fully qualified class name>"
scope="session"
name="<name of form>"
>
</action>
then set the fields u want to save across requests in the form bean.
in this case new instance will not be created.
hope this helps.
regards,
srinivas
-----Original Message-----
From: Bhaskar Gopalan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 1:07 AM
To: Struts Group (E-mail)
Subject: Accessing action object inside the form bean
Hi,
I open a form, collect user input and on submit store it in the action class
(inside perform()) as
instance variables. Next time when the same form is opened, I want to
retrieve the values
stored in the action class. Since a new instance of the form bean is created
every time a form
is accessed, is there anyway to get the field values stored in the action
class from the bean
form?
Thanks,
Bhaskar
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>