org.apache.struts2.action

## Interface ParameterNameAware

- All Known Subinterfaces:
    ParameterNameAware

      public interface ParameterNameAware

  This interface is implemented by actions that want to declare acceptable parameters. Works in conjunction with `ParametersInterceptor`. For example, actions may want to create a white list of parameters they will accept or a blacklist of parameters they will reject to prevent clients from setting other unexpected (and possibly dangerous) parameters.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `acceptableParameterName(String parameterName)` Tests if the action will accept the parameter with the given name.

- - ### Method Detail

    - #### acceptableParameterName

          boolean acceptableParameterName(String parameterName)

      Tests if the action will accept the parameter with the given name.
      Parameters:
        `parameterName` - the parameter name
      Returns:
        `true` if accepted, `false` otherwise

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