Struts 2 REST API Ejemplo
<constant name="struts.action.extension" value="xhtml,,xml,json,action"/>
Riz Michael Sim
<constant name="struts.action.extension" value="xhtml,,xml,json,action"/>
<constant name="struts.convention.action.suffix" value="Controller"/>
<constant name="struts.convention.action.mapAllMatches" value="true"/>
<constant name="struts.convention.default.parent.package" value="rest-default"/>
<constant name="struts.convention.package.locators" value="example"/>
<constant name="struts.mapper.class" value="org.apache.struts2.dispatcher.mapper.PrefixBasedActionMapper" />
<constant name="struts.mapper.prefixMapping" value="/rest:rest,:struts"/>
<constant name="struts.actionProxyFactory" value="prefix"/>