This is an html issue, rather than a struts one. Read up on how <input type="submit"/> works for an in depth explanation.
Struts provides the LookupDispatchAction which is designed to deal with this issue. Paul > -----Original Message----- > From: Eric BELLARD [mailto:[EMAIL PROTECTED] > Sent: 24 November 2003 11:21 > To: [EMAIL PROTECTED] > Subject: html:submit and html:button componant : value and text label > > > hi, > > i'm dispatch action addicted developper and I go a > recurent problem with html:button and html:submit > componant. > > With these componants it's impossible to separate > their label and their submitted value. > > I managed with some javascript like this to invoke the > dispatch method i want : > > // submit form > function submitForm(form, parameter) { > > form.action = form.action + "?" + parameter; > form.submit(); > > } > > // valid and submit a form > function validAndSubmitForm(form, parameter) { > > if (window.confirm('Are tou sure you want to delete > the selected samples?')) { > submitForm(form, parameter); > } > } > > So my question is why can't we separate the label and > sumitted value of buttons in struts? > > Sorry if it's a "déjà vu". > > > > ===== > Eric BELLARD > [EMAIL PROTECTED] > mobile: 0614952791 > > __________________________________ > Do you Yahoo!? > Free Pop-Up Blocker - Get it now > http://companion.yahoo.com/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > ************************************** Axios Email Confidentiality Footer Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message, and notify us immediately. If you or your employer does not consent to Internet email messages of this kind, please advise us immediately. Opinions, conclusions and other information expressed in this message are not given or endorsed by my Company or employer unless otherwise indicated by an authorised representative independent of this message. WARNING: While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted via electronic mail attachments we cannot guarantee that attachments do not contain computer virus code. You are therefore strongly advised to undertake anti virus checks prior to accessing the attachment to this electronic mail. Axios Systems Ltd grants no warranties regarding performance use or quality of any attachment and undertakes no liability for loss or damage howsoever caused. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]