org.apache.struts2.action

## Interface ParameterValueAware

- All Known Subinterfaces:
    ParameterValueAware

      public interface ParameterValueAware

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

- - ### Method Summary

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

- - ### Method Detail

    - #### acceptableParameterValue

          boolean acceptableParameterValue(String parameterValue)

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

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