Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

Re: using CompositeActionMapper

Jeromy Evans

2008-09-29

Replies: Find Java Web Hosting

Author LoginPost Reply
Allen Lee wrote:
> Hey there,
>
>
> Has anyone successfully gotten CompositeActionMapper to work and how?
>
>  


<!-- Define the action mappers -->
<bean type="org.apache.struts2.dispatcher.mapper.ActionMapper"
name="addressMapper"
class="com.mycompany.actionmapper.CustomActionMapper" />
<bean type="org.apache.struts2.dispatcher.mapper.ActionMapper"
name="compositeMapper"
class="org.apache.struts2.dispatcher.mapper.CompositeActionMapper" />

<!-- configure the composite order (custom mapper and the default rest
plugin action mapper) -->
<constant name="struts.mapper.composite" value="addressMapper,rest" />

<!-- enable the composite mapper -->
<constant name="struts.mapper.class" value="compositeMapper"/>




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

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