You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Matthews, Brian" <Br...@fid-intl.com> on 2003/06/24 12:51:01 UTC

RE: submit buttons

How about something along the lines of:

<html:hidden property="command"/>
<html:submit onclick="this.command='CH';return true">Change</html:submit>

Brian

-----Original Message-----
From: Filip Polsakiewicz [mailto:Filip.Polsakiewicz@innoface.de]
Sent: Tuesday, June 24, 2003 11:55 AM
To: Struts Users Mailinglist
Subject: submit buttons


Hi,
i have the following problem:

i need a submit button that sets the command-property of my formbean to CH
(Change) but the button's label should be: Change
I tried

<html:submit property="command" value="CH">Change</html:submit>
<html:submit property="command" value="CH" titleKey="submit.label"/>

does not work. Any suggestions?

Filip Polsakiewicz


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

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


RE: submit buttons

Posted by Filip Polsakiewicz <Fi...@innoface.de>.
Hi thanks for that hint,
i needed to change it a bit until it worked:

   <html:hidden property="command"/>
   <html:submit onclick="getElementById('command').value='CH';return
true">Change</html:submit>
   <html:submit onclick="getElementById('command').value='DI';return
true">Display</html:submit>

thanks alot!

Filip

> -----Original Message-----
> From: Matthews, Brian [mailto:Brian.Matthews@fid-intl.com]
> Sent: Tuesday, June 24, 2003 12:51 PM
> To: 'Struts Users Mailing List'
> Subject: RE: submit buttons
>
>
> How about something along the lines of:
>
> <html:hidden property="command"/>
> <html:submit onclick="this.command='CH';return true">Change</html:submit>
>
> Brian
>
> -----Original Message-----
> From: Filip Polsakiewicz [mailto:Filip.Polsakiewicz@innoface.de]
> Sent: Tuesday, June 24, 2003 11:55 AM
> To: Struts Users Mailinglist
> Subject: submit buttons
>
>
> Hi,
> i have the following problem:
>
> i need a submit button that sets the command-property of my formbean to CH
> (Change) but the button's label should be: Change
> I tried
>
> <html:submit property="command" value="CH">Change</html:submit>
> <html:submit property="command" value="CH" titleKey="submit.label"/>
>
> does not work. Any suggestions?
>
> Filip Polsakiewicz
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>


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