You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Rajat Pandit <ja...@yahoo.com> on 2003/09/19 11:20:59 UTC

multiple forms with the same formBean

hello,
i am using multiple forms in one page which are
attached to the same form bean. now the problem is
that when there is an validation error and the page is
returned back to INPUT all the forms in the page are
prefilled with the same value. i am giving the
struture of my jsp  pls help as this is urgent

<logic:iterate id="product" name="PRODUCTS">
<html:form action="/Bid" name="bidForm">
<!-- form content -->
<html:text name="bidForm" property="amount">
<!-- end of form content -->
<?html:form>
</logic:iterate>

this will print the form n times on the page.. now
suppose the first form is submitted with some eror
then the bean bidForm will be saved with this value
and in all the iterated forms will be prefilled with
the same.. any clues. am i doing it the wrong way or
any better way to do the same thing.
regards
rajat

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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