com.cc.framework.adapter.struts
Class FormActionCommand

java.lang.Object
  extended bycom.cc.framework.adapter.struts.FormActionCommand

public class FormActionCommand
extends java.lang.Object

Form action

Since:
1.0
Version:
$Revision: 1.1 $
Author:
Harald Schulz

Field Summary
private static java.lang.String BUTTON_PREFIX
          Field BUTTON_PREFIX
private static java.lang.String HIDDEN_FORMID
          Field HIDDEN_FORMID
private static java.lang.String METHOD_ONCANCEL
          Field METHOD_CANCEL
private static java.lang.String METHOD_ONCLICK
          Field METHOD_ONCLICK
private static java.lang.String METHOD_ONSUBMIT
          Field METHOD_ONSUBMIT
 
Constructor Summary
FormActionCommand()
           
 
Method Summary
static java.lang.String parseButton(ActionContext ctx)
          If a "btnXXX" button on a HTML form is clicked, this method returns the name of the button
static java.lang.String parseFormAction(ActionContext ctx)
          If a button on a HTML form is clicked, this method returns the name of the method to be processed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HIDDEN_FORMID

private static final java.lang.String HIDDEN_FORMID
Field HIDDEN_FORMID

See Also:
Constant Field Values

BUTTON_PREFIX

private static final java.lang.String BUTTON_PREFIX
Field BUTTON_PREFIX

See Also:
Constant Field Values

METHOD_ONCLICK

private static final java.lang.String METHOD_ONCLICK
Field METHOD_ONCLICK

See Also:
Constant Field Values

METHOD_ONSUBMIT

private static final java.lang.String METHOD_ONSUBMIT
Field METHOD_ONSUBMIT

See Also:
Constant Field Values

METHOD_ONCANCEL

private static final java.lang.String METHOD_ONCANCEL
Field METHOD_CANCEL

See Also:
Constant Field Values
Constructor Detail

FormActionCommand

public FormActionCommand()
Method Detail

parseButton

public static java.lang.String parseButton(ActionContext ctx)
If a "btnXXX" button on a HTML form is clicked, this method returns the name of the button

Parameters:
ctx - The ActionContext
Returns:
The name of the button

parseFormAction

public static java.lang.String parseFormAction(ActionContext ctx)
If a button on a HTML form is clicked, this method returns the name of the method to be processed

Parameters:
ctx - The ActionContext
Returns:
The name of the method


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.