Date: 2004-07-27T10:12:07
Editor: MichaelMcGrady <[EMAIL PROTECTED]>
Wiki: Apache Struts Wiki
Page: StrutsCatalogMultipleImageButtonsWithNoJavaScript
URL: http://wiki.apache.org/struts/StrutsCatalogMultipleImageButtonsWithNoJavaScript
no comment
Change Log:
------------------------------------------------------------------------------
@@ -1,6 +1,13 @@
StrutsCatalog: '''Here is one way to take care of that pesky and recurrent problem of
how to use multiple image buttons in your forms. This solution will suggest other
possibilities you might want to code for yourself.'''
-The HTML is simple. If you have buttons you want called "submit" and "clear" for
example, you would have the following HTML:
+The Struts "HTML" is simple. If you have buttons you want called "submit" and
"clear" for example, you would have the following page tags:
+
+{{{
+ <html:image property='button.submit' src='Submit.gif'>
+ <html:image property='button.clear' src='Clear.gif'>
+}}}
+
+The resultant HTML is:
{{{
<input type=image name='button.submit' src='Submit.gif'>
@@ -10,8 +17,8 @@
PLEASE NOTE THAT THE name attribute is the name of the command, not the name of the
button. Therefore, you could had the following as well:
{{{
- <input type=image name='button.submit' src='CLICK.gif'>
- <input type=image name='button.clear' src='GO_BACK.gif'>
+ <html:image property='button.submit' src='CLICK.gif'>
+ <html:image property='button.clear' src='GO_BACK.gif'>
}}}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]