Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Extending ActionConfig in Struts2

Vinod Singh

2007-08-07

Replies:

Hi All,

The Struts 1.x provides a facility to extend the ActionMapping by
defining it in web.xml in following manner-

  <init-param>
    <param-name>mapping</param-name>
    <param-value>CustomActionMapping</param-value>
  </init-param>

In Struts 2.x I don't see anyway to extend ActionConfig.

The ActionConfig class is hard coded in addAction(...) method of
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.

Can anyone guide me in extending ActionConfig, if I am missing something?

Thanks,

Vinod
©2008 junlu.com - Jax Systems, LLC, U.S.A.