struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Míguel Ángel Mulero Martínez <miguel-angel.mul...@mad.tecsidel.es>
Subject RE: Durability of a ActionForm
Date Fri, 22 Nov 2002 06:56:42 GMT
I'm with you, I think that I will put it in the session finally. Thanks!

Miguel

> -----Mensaje original-----
> De: Andrew Hill [mailto:andrew.david.hill@gridnode.com]
> Enviado el: viernes, 22 de noviembre de 2002 7:09
> Para: Struts Users Mailing List
> Asunto: RE: Durability of a ActionForm
>
>
> You cant.
>
> Once your page has been rendered to the client from the JSP your
> request is
> finished. Over. Finito. Dead. Pining for the fjiords. Joined the choir
> invisible...
>
> You will need to use the session.
>
> (Unless you want to make your ActionForm serializable, write it
> out as text
> to a hidden field or a cookie, and override the RequestProcessor to
> reinstantiate it on submission (which would still be a new
> object, but same
> data).- and you really dont want to do that...)
>
> -----Original Message-----
> From: Míguel Ángel Mulero Martínez
> [mailto:miguel-angel.mulero@mad.tecsidel.es]
> Sent: Thursday, November 21, 2002 19:37
> To: Lista Struts
> Subject: Durability of a ActionForm
>
>
> Hi all,
>
> My question is how can I make for extend the durability of a request scope
> ActionForm. For example, in my Action I can do somethig like:
>
> request.setAttribute("form", form);
>
> In this way, the ActionForm that I retrieved from the JSP and
> arrived to the
> Action, will arrive to the next JSP.
> But, how can I do it in the JSP no make it arrive to the next Action?
>
> My problem is that I wan't to use a request ActionForm (not a
> session), and
> if I create it in the Action before the JSP, when I make a submit the
> ActionForm doesn't exist and Struts creates one new. If I don't put the
> Action before the JSP, then Struts creates it in the JSP and it calls the
> submit function when I make submit. I wan't to achieve the second without
> putting the ActionForm in session scope and creating it in the
> Action before
> the JSP.
>
> Thanks all!!
> Miguel
>
>
> --
> To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@jakarta.apache.org>
>
>
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message