Date: 2004-07-27T10:06:06
Editor: MichaelMcGrady <[EMAIL PROTECTED]>
Wiki: Apache Struts Wiki
Page: StrutsCatalogMultipleImageButtonsWithNoJavaScript
URL: http://wiki.apache.org/struts/StrutsCatalogMultipleImageButtonsWithNoJavaScript
no comment
Change Log:
------------------------------------------------------------------------------
@@ -20,11 +20,11 @@
{{{
public class Button
implements Serializable {
- private Command reset = new Command();
+ private Command clear = new Command();
private Command submit = new Command();
public Button() {}
- public Command getReset() { return reset; }
+ public Command getClear() { return clear; }
public Command getSubmit() { return submit; }
public class Command
@@ -51,8 +51,8 @@
will be automatically set in the !ActionForm as follows in Struts:
{{{
- [ActionForm].getButton().getSubmit().setX(new Integer("9"));
- [ActionForm].getButton().getSubmit().setX(new Integer("8"));
+ [ActionForm].getButton().getSubmit().setX(new Integer("37"));
+ [ActionForm].getButton().getSubmit().setY(new Integer("3"));
}}}
Your !ActionForm will contain the equivalent of the following code.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]