On 8/31/10 4:40 PM, Rafael Taboada wrote:
I have in my struts.xml
<bean type="org.apache.struts2.dispatcher.mapper.ActionMapper"
name="pseudoRestful"
class="org.apache.struts2.dispatcher.mapper.Restful2ActionMapper"/>
<constant name="struts.mapper.class"
value="org.apache.struts2.dispatcher.mapper.PrefixBasedActionMapper"/>
<constant name="struts.mapper.prefixMapping"
value="/service:pseudoRestful,:struts"/>

It means, every url that contains 'service' must be mapped with
Restful2ActionMapper, everything else use default mapping.

Is that correct? What am i missing or doing wrong?

Almost. It means that every request that starts with "/service/" (ignoring context root) will first be mapped using the Restful2ActionMapper, if that fails, then it'll be mapped by the standard struts DefaultActionMapper. Anything that doesn't start with "/service/" will just be mapped by the standard struts DefaultActionMapper.

-Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to