I Like to use URLs like host/ActionName/123/abc/
, instead of passing query string like host/ActionName?parm1=123&parm2=abc
.
How can I do that in Struts2?
I done as below. but it is not working, showing 500 error code
<constant name="struts.enable.SlashesInActionNames" value="true"/>
<constant name="struts.mapper.alwaysSelectFullNamespace" value="false"/>
<package name="default" extends="struts-default" namespace="/">
<action name="/action/*"
class="gov.apiic.serviceRequest.action.ServiceRequest" method="method" >
<param name="p1">{1}</param>
<result name="success">views.jsp</result>
</action>
</package>