So there is no neat way around this?
Alex Shneyderman wrote: > > Yeah but the question was that he wanted the mapping to occur. > So say you have a button and you want to call it Reset Password. Your > dipatch action would have a corresponding method called rstPasswd. Now > how do you map it? If I submit my form the value of method parameter is > going to be "Reset Password" not rstPasswd. > > I think the issue here is not so much Struts but HTML itself since if > you have submit button the value is what gets to be displayed as its > caption. The solution for me was to use images instead, but then you > have produce them and they are not as flexible as the submits, since you > can not change the caption on the fly. > > Alex. > > > -----Original Message----- > > From: Rohit Aeron [mailto:[EMAIL PROTECTED] > > Sent: Thursday, August 07, 2003 8:10 AM > > To: Struts Users Mailing List > > Subject: RE: Button labels and DispatchActions mix? > > > > This will work .. > > > > <html:submit property="action" > > value="<bean:message key="search.button.reset" />" > > > </html:submit> > > > > > > > > -----Original Message----- > > From: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED] > > Sent: Thursday, August 07, 2003 5:29 PM > > To: Struts Users Mailing List > > Subject: Button labels and DispatchActions mix? > > > > Hello people, > > > > I have the following code : > > > > <html:submit property="action" value="resetg" > > > <bean:message key="search.button.reset" /> > > </html:submit> > > > > What I am trying to do is have a Dispatch Action > > so that when this button is pressed the request is something like > > search.do?action=resetg > > But I don't want my button to have the resetg title on it. I want it > to > > have the search.button.reset title from ApplicationResources bundle > > on it. It seems tha Struts html tag library mixes the two. Is there a > > way out of this? > > > > > > Thanks.... > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > *---------- > > This message and any attachment(s) is intended only for the use of the > > addressee(s) and may contain information that is PRIVILEGED and > > CONFIDENTIAL. If you are not the intended addressee(s), you are hereby > > notified that any use, distribution, disclosure or copying of this > > communication is strictly prohibited. If you have received this > > communication in error, please erase all copies of the message and its > > attachment(s) and notify the sender or Kanbay postmaster immediately. > > > > Any views expressed in this message are those of the individual sender > and > > not of Kanbay. > > > > Although we have taken steps to ensure that this e-mail and any > > attachment(s) are free from any virus, we advise that in keeping with > good > > computing practice the recipient should ensure they are actually virus > > free. > > > > > > --------------------------------------------------------------------- > > 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]