[
https://issues.apache.org/struts/browse/WW-2394?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wes Wannemacher closed WW-2394.
-------------------------------
Resolution: Implemented
Fix Version/s: (was: Future)
2.1.7
This is no longer an issue with the Conventions plugin.
> Zero Configuration is too limited - cannot eliminate struts.xml
> ---------------------------------------------------------------
>
> Key: WW-2394
> URL: https://issues.apache.org/struts/browse/WW-2394
> Project: Struts 2
> Issue Type: New Feature
> Components: "New" API
> Affects Versions: 2.0.11
> Environment: Java 5; Vista; JBoss 4.0.5.GA
> Reporter: Christian Bonami
> Fix For: 2.1.7
>
>
> Consider this struts.xml snippet:
> <action name="customerContract"
> class="customerContractAction">
> <result name="success" type="dispatcher">
> /jsp/s2/customerContract.jsp
> </result>
> </action>
> <action name="customerContractFilter"
> class="customerContractAction" method="filter">
> <result name="success" type="dispatcher">
> /jsp/s2/customerContract.jsp
> </result>
> </action>
> The zero configuration -at this time- only has @Result and @Results tags.
> This means that:
> - it is not possible to configure multiple actions that share the same
> action-class (or action-bean in Spring); 'customerContract' and
> 'customerContractFilter' both point to the same action class, only the
> 'method' parameter is different ==> Struts 2 should offer some annotations
> for this
> - there's no way to express (with an annotation) that the Action-object
> should be injected with Spring beans (in a specific Spring
> ApplicationContext). It would be nice that such a feature would also be added
> to the framework
> This way, we could (completely/partially) eliminate the struts.xml file, or,
> in other words, make Zero Configuration really practically useable (which,
> IMHO, is not the case now.
> Regards
> Christian
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.