Hi, I've been looking at PrefixBasedActionMapper. What is the way to configure it?
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? On Tue, Aug 31, 2010 at 2:37 PM, Dale Newfield <d...@newfield.org> wrote: > On 8/31/10 3:15 PM, Rafael Taboada wrote: > >> I migrated my app to 2.1 because I need to use restful plugin, didn't >> think in 2.2 because it was released just a month ago (i think) and i >> don't know if it is a good option in production environment. >> > > Theoretically any GA (General Availability) release is of sufficient > quality to run in production, and the newer releases will have both more > capabilities as well as better performance characteristics. If you > experience any issues, please ask here and/or submit a detailed JIRA issue. > > -Dale > -- Rafael Taboada Software Engineer Cell : +511-992741026 "No creo en el destino pues no me gusta tener la idea de controlar mi vida"