posted 20 years ago
In DispatchAction, the methods called will be depends on the Form parameter *method*.
For example, if you have a form parameter *method* with value *xxx*, you will then need to have a method:
And this method will be called whenever the method value equals to "xxx".
In the JSP, you can use JavaScript to check, when the form is submitted, what are your input values, and set the method value by:
And the corresponding methods xxx, yyy and zzz will be called accordingly.
Nick
[ May 19, 2004: Message edited by: Nicholas Cheung ]
[ May 19, 2004: Message edited by: Nicholas Cheung ]
SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)