On 10/20/05, Keith Sader <[EMAIL PROTECTED]> wrote: > After googling some more, it seems as though there's no 'elegant' way > of doing what seems simple on the surface in terms of swapping two > tags. I think I'm just going to wind up using the ImageButtonBean > work-around. > > Thanks for the links!
Why? There is. The point is to send a command as request key, not as request value, so you could use value for button caption. Also, you need to strip .x or .y for images. That is it. See the live example: http://www.superinterface.com/strutsdialog/selectaction.html And the source HTML could not be simpler: <form action="selectaction.do" method="post"> <h3>Regular pushbuttons</h3> <input type="submit" name="app-submit-button-add" value="Add button" /><br><br> <input type="submit" name="app-submit-button-delete" value="Delete button fancy caption" /><br><br> <input type="submit" name="app-submit-button-unk" value="No corresponding handler (exception)" /><br><br> <input type="submit" name="no-prefix" value="Does not start with prefix (unspecified)" /> <h3>Image button</h3> <input type="image" name="app-submit-button-login" src="login.gif" value="Log In"> </form> But the choice is yours, of course :-) Have fun, Michael. -- Struts Dialogs http://struts.sourceforge.net/strutsdialogs --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]