[ https://issues.apache.org/struts/browse/WW-1677?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eric Martin updated WW-1677: ---------------------------- Attachment: buttons.jpg index.jsp button.patch I didn't see an easy way to change the behavior of the submit tag when the type is "button", so I created a new button tag. The usesBody method needed to return true and there also needed to be some logic that required the button body to have a value. In addition, the button tag can have 3 types, button (default), reset, and submit. I used the new @StrutsTagSkipInheritance annotation in Button.java to suppress unused attributes from displaying in the Button tag html file. I don't know if this is desired, so please remove if it's not ;) If it is decided to use this button tag, let me know and I can create the test cases for it. I've attached a test jsp page and screenshot. -Eric > <s:submit type="button" does not render the enclosed content inside properly > ---------------------------------------------------------------------------- > > Key: WW-1677 > URL: https://issues.apache.org/struts/browse/WW-1677 > Project: Struts 2 > Issue Type: Bug > Components: Plugin - Tags > Environment: Windows XP SP2, JSDK 6.0, Tomcat 5.5, Spring 2.0 > Reporter: Peng Wang > Fix For: 2.0.5 > > Attachments: button.patch, buttons.jpg, index.jsp > > > Please take a look at the following code, the <s:submit tag did not render the tags properly. > <code> > <s:submit type="button" theme="simple"> > <s:text name="testplan.form.submit.label" /> <img align="top" src="<s:url value="/images/save_16.png" />"/> > </s:submit> > </code > I expected the output would be > <code> > <button type="submit">Submit <img align="top" src="images/save_16.png"/></button> > </code> > but the actual out put is > <code> > Submit <img align="top" src="/autobase/images/save_16.png?testPlan.id=1"/><button type="submit" id="testPlanForm_save" name="save" value="Submit">Submit</button> > </code> -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.