Search code examples
javastruts2strutsstruts-1

Alternative of DispatchAction class in struts2


I am moving from struts1 to struts2 and I have successfully created simple applications in struts2 I want to use unspecified / custom functions of Dispatchaction class which i used in struts1 in struts2 , which class would be extended to do this


Solution

  • No class would be extended; use the "method" attribute in the action configuration, or annotate the method directly if using annotation-based configuration. You can also use wildcard actions to avoid manual configuration.

    If that doesn't work for you, please explain specifically what your needs are, and why that won't work.