Java Mailing List Archive

http://www.junlu.com/

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

Re: [S2] how to specify ActionMapper -- Restful2ActionMapper

Nate Drake

2007-01-05

Replies:

Eric Rank <ericrank <at> lo-fi.net> writes:
> 2. In the struts-default.xml file that ships with Struts2, there's a
> line, which names the class to "restful2":
>
> <bean type="org.apache.struts2.dispatcher.mapper.ActionMapper"
> name="restful2"
> class="org.apache.struts2.dispatcher.mapper.Restful2ActionMapper" />
>
> So, assuming that I need to modify the struts.mapper.class property,
> which is right:
>
> struts.mapper.class=restful2
>
> or
>
> struts.mapper.class=org.apache.struts2.dispatcher.mapper.Restful2ActionM
> apper
>

You need to use the fully qualified classname.

So this should work:

struts.mapper.class=org.apache.struts2.dispatcher.mapper.Restful2ActionMapper

Not sure about the answer to question #3.



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

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