Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## com.opensymphony.xwork2.interceptor.annotations
Annotation Type InputConfig

    @Retention(value=RUNTIME)
    @Target(value=METHOD)
    public @interface InputConfig

Marks a action method that if it's not validated by ValidationInterceptor then execute input method or input result.

Annotation usage: The InputConfig annotation can be applied at method level.

Annotation parameters:

Parameter | Required | Default | Notes
--- | --- | --- | ---
methodName | no |  | execute this method if specific
resultName | no |  | return this result if methodName not specific

Example code:

     public class SampleAction extends ActionSupport {

      public void isValid() throws ValidationException {
        // validate model object, throw exception if failed
      }

      @InputConfig(methodName="input")
      public String execute() {
         // perform action
         return SUCCESS;
      }
      public String input() {
         // perform some data filling
         return INPUT;
      }
     }

Author:
  zhouyanming, zhouyanming@gmail.com

Optional Element Summary
`String` | `methodName`
`String` | `resultName`

### methodName

    public abstract String methodName

  Default:
    ""

### resultName

    public abstract String resultName

  Default:
    "input"

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

Copyright © 2000–2018 Apache Software Foundation. All rights reserved.