You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Don Brown (JIRA)" <ji...@apache.org> on 2006/09/13 05:25:31 UTC
[jira] Commented: (WW-1420) default-class-ref
[ http://issues.apache.org/struts/browse/WW-1420?page=comments#action_38187 ]
Don Brown commented on WW-1420:
-------------------------------
I'm not following...we already have a way to specific a default Action for a package. I don't really see the value in specifying a default class, or rather, I don't think the additional configuration element would be worth it. Wildcards should be able to get you most of the way, if you really want to specify a class name once.
> 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