We have a custom taglib that has such buttons. 

<forms:back>Back</forms:back> 
produces 
<button name='backButton' onClick='submitBack(this.form);'>Back</button>

The reason we do this is to create a struts cancel input with a value
that is controlled by the button, yet can use I18N on the page.

Very simple code. See taglib src for examples. 

Custom taglibs are the way to go. It reduces complex tag combinations
and scriptlets, and writes the HTML you want.

Toby


-----Original Message-----
From: Rick Mann [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 16, 2002 4:40 PM
To: Struts Users Mailing List
Subject: button input fields?


So, I happily thought the <html:button> tag would render a <button> input
field element, but instead it seems to render an <input> element. Is there a
way to get a <button> element? If not, is there a reason it can't be done
within the Struts tags framework?

A look in the archive turned up lots of button-related posts, but no one
seems to be trying to use the <button> element.

TIA, and if it's not too much trouble, please CC me on the reply. Thank you.

-- 
Rick



--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to