[ http://issues.apache.org/struts/browse/WW-1420?page=comments#action_38219 
] 
            
Don Brown commented on WW-1420:
-------------------------------

There should be very few cases where you need to use an action class in 
multiple action mappings.  Furthermore, I agree with Patrick that one 
interceptor stack should be able to accomidate 95% of the application.  In the 
case above, simply configure the validation interceptor to only validate 'save' 
method names.  Then, there is no need for two mappings as the 'execute' call 
won't be validated, but the 'save' call will be.  The "Subscription!*" mapping 
should cover both cases.

> default-class-ref
> -----------------
>
>                 Key: WW-1420
>                 URL: http://issues.apache.org/struts/browse/WW-1420
>             Project: Struts 2
>          Issue Type: Improvement
>    Affects Versions: 2.0.1
>            Reporter: Ted Husted
>
> Allow a package to specify a default Action class. 
> <package name="country" extends="orgListers, crud" namespace="/country">
>     <global-results>
>         <result name="CRUD-list" 
> type="freemarker">/template/eplus/metaDataList.ftl</result>
>     </global-results>
>     <default-interceptor-ref>crudStack</default-interceptor-ref>
>     
> <default-class-ref>com.eplus.app.country.action.CountryCrudAction</default-class-ref>
>     <action name="*Country" method="{1}">
>         <interceptor-ref name="{1}Stack"/>
>     </action>
>     <action name="saveCountry" method="save"/>
>     <action name="deleteCountry" method="delete"/>
> </package>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to