org.apache.struts2.interceptor.httpmethod

## Annotation Type HttpGetOrPost

-     @Target(value={METHOD,TYPE})
       @Retention(value=RUNTIME)
      public @interface HttpGetOrPost

  Use this annotation to allow call action or action's method via GET or POST request only
  Since:
    6.2.0
  See Also:
    `HttpMethodInterceptor`

- - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element and Description
    --- | ---
    `HttpMethod[]` | `value`

- - ### Element Detail

    - #### value

          public abstract HttpMethod[] value

      Default:
        {org.apache.struts2.interceptor.httpmethod.HttpMethod.GET, org.apache.struts2.interceptor.httpmethod.HttpMethod.POST}

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