Hi, Thanks for you response.
I was probably not very clear, so I prefer to explain the configuration again. My form is associated to a LookupDispatchAction <html:form action="/setupLookupDispatchAction.do" in this form we have a hyperlink <html:link page="/myAction.do" paramId="method" paramScope="page" paramName="address" > we have a lot of data in our form that we want to save before displaying the next page. That is why we add submit on the onchange <html:link page="/myAction.do" paramId="method" paramScope="page" paramName="address" onclick="document.forms[0].submit();"> The execute function of setupLookupDispatchAction seems to be called twice. In debug mode (step by step) several thread seem to work simultaneously: it jumps from a line to another without logic. Replacing the hyperlink by an image or a button works but we need to solve the problem for combobox (html:select). On the Onchange method we should update fields on the form. Sandra -----Original Message----- From: Axel Stahlhut [mailto:[EMAIL PROTECTED] Sent: 13 May 2004 16:05 To: Struts Users Mailing List Subject: Re: Html:link and save form Hi Sandra, a link never submits data of the surrounding form. If you do it the way you did, this should work, but if the user has javascript disabled, nothing is submitted. You have got to check at least for errors from that. But the user will never know or understand, ehat is happening. You should use a button, maybe an image button, and the image is the linktext?! Regards axel Heligon Sandra wrote: >I have a form with a htlm:link > ><html:link page="/myAction.do" paramId="method" paramScope="page" >paramName="address" onclick="document.forms[0].submit();"> > >I need to add submit on the onclick to have changes of the form. > >If I don't make submit the state of the form is not saved. > >Is it a bug ? > >Sandra > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]