Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • wrap the form.submit() in a js function that changes the actionevent name
Code Block
languagejava
titlecode Example
No Format

    doSubmit(actionevent_name){ 
       document.formname.actionevent.name=actionevent_name;  
       document.formname.submit(); 
    }

...

This will result in a call to doYourMethodName method in the ActionEvent class.

Example

Find an usage example in org.apache.turbine.modules.actions.VelocityAction in Turbine Code.