You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Juanjo Cuadrado <jj...@gmail.com> on 2008/03/06 23:27:19 UTC

Preserve datas in form

Hi,

    How I can preserve the data in the form when I do submit the form and
ActionForm finds a error?

    When it return to jsp, the form's field are voids.

    Thanks

Re: Preserve datas in form

Posted by Juanjo Cuadrado <jj...@gmail.com>.
Hi,

    I have a form (<html:form action="...">... <html:submit
....></html:form>) and a ActionForm. In the method validate I have a
errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("errors.required",
"Name"))... and in the struts-config I have declared a action element wiht
scope="session".... I think that all is OK, but don't work..

    When the jsp is show again, the fields are void, wihtout any data (I
have introduced data before do submit)...

    Thanks,

2008/3/6, Lukasz Lenart <lu...@googlemail.com>:
>
> Hi,
>
> How do you forward to jsp, simple forward or maybe redirect? Could you
> give some example?
>
>
> Regards
>
> --
> Lukasz
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: Preserve datas in form

Posted by Lukasz Lenart <lu...@googlemail.com>.
Hi,

How do you forward to jsp, simple forward or maybe redirect? Could you
give some example?


Regards
--
Lukasz

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