Hi all,

        Is it possible to change the scope of the ActionForm bean during
runtime ? 

For example i have a multi-page ActionForm Bean being used by different
Actions. After the user has filled in all the information in this
ActionForm, the user submits the information to an other Action Class. This
Action Class writes the information to a database, then has to show the user
the information entered by them (so that they can print it for their
records). After which, the ActionForm gets deleted (or) removed from
Sesison.

  To do this..i have given the ActionForm bean request scope (in all the
Actions which handle the user input). When the user submits info, and it
gets written to a database, i want to change the scope of this ActionForm to
"request" scope. On doing this the jsp page will show the information back
to the user, after which the ActionForm Bean gets deleted (since it has
request scope). 

  If i set the scope in the 'struts-config.xml' to 'session' for some
Actions and 'request' to the Action class which writes to database and
displays a page of all the user-entered information....will it work ?

   Any comments / suggestions will be greatly appreciated. Thanks.

cheers,
Amar..

Reply via email to