You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Max Kovalenkov <ma...@sun.com> on 2004/04/01 01:07:44 UTC
feeding custom actionForm to a jsp page?
Hello,
I have a form for submitting data which can be optionally used to
substitute new data instead of any other past entry by the same user. If
you check a 'change' checkbox before pressing submit - brings you back
to the same form, but now there's also a "radio-button" list of past
entries, and you can choose one to write new data on top of. Original
chain of events is:
prepop.java -> submit.jsp -> process.java -> end.jsp
If a checkbox is checked, however, there is one more 'loop'(for
populating list of past entries):
prepop.java -> submit.jsp -> prepop.java -> submit.jsp -> process.java
-> end.jsp
All I want is to be able to reproduce submitted values the second time
around on submit.jsp, just like the validator does in case something's
wrong. But it creates a new ActionForm when forwarded to for the second
time and all the values are lost.. Is there a way to feed it my already
populated actionForm?
This might be the clumsiest way to do this, but I'm relatively new to
this and couldn't figure anything better by myself. Any tips are greatly
appreciated.
Thanks.
Max
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org