Class StrutsActionHelper


  • @ParametersAreNonnullByDefault
    public final class StrutsActionHelper
    extends Object
    Helper class for Struts actions.
    Since:
    4.2
    • Method Detail

      • getActionMethod

        public static Method getActionMethod​(Class<?> actionClass,
                                             @Nullable String methodName)
                                      throws NoSuchMethodException
        Finds the action method on the action class. This method followed the logic found in ActionConfig without the need to instantiate the action class.
        Parameters:
        actionClass - The struts action class
        methodName - the name of the action method
        Returns:
        Method - the action method named methodName
        Throws:
        NoSuchMethodException - if the method named methodName cannot be found
      • getActionClassMethod

        public static Method getActionClassMethod​(Class<?> actionClass,
                                                  @Nullable String methodName)