The submit will only submit the one form... sandeep --- Ajay Patil <[EMAIL PROTECTED]> wrote: > Dear Jing, > > In the scenario that you describe (Multiple forms on > same HTML page) - > > The browser will send only the data inputted on the > form whose submit > button is clicked. The data inputted in other forms > will not be > sent to the server, and so there is no way the > server can send it > back in the next page. > > I think the only way to solve this problem is to > control the HTML > so that only one form is editable at a time. > > Thus, the detail form becomes editable only when you > click on "Edit" > detail button. (and when the detail form is > editable, the master > form is not editable). > > You can also show/hide forms to achieve a similar > effect. Though this > is possible in Javascript, I like to do it in JSP on > server-side, using > a state property in the form class to indicate what > state the form > is currently in. > > Let me know what you think, > Ajay > > > Thanks for your inputs. It is a practical > solution. > > But it looks to me that it doesn't offer > sufficient > > justification for the use of multiple html forms. > > If I understand you right, your master form and > > detail form are actually combined in one html > form? > > So any submit buttons will trigger both forms > > being submitted. > > > I am not sure we can safely say one html form > > per page is sufficient for general web > applications. > > It was a design decision I made sometime ago > > for our product. But it is still an > open/challenging > > question in my mind. > > > Jing > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] >
__________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]