I want to rewrite my URL in Struts2.
Please help me out to do this. How can i customize as i want, i don't want to show my parameter that i am passing and also show action with different name that i want
I don't know how to do it. i have to use plugins for that or configure my code in struts.xml
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<constant name="struts.action.extension" value="action" />
<constant name="struts.enable.DynamicMethodInvocation" value="false" />
<constant name="struts.devMode" value="true" />
<constant name="struts.ui.theme" value="simple" />
<include file="struts-user.xml"></include>
<include file="struts-admin.xml"></include>
<include file="struts-common.xml"></include>
<include file="struts-masters.xml"></include>
</struts>
file tell me the way how to perform as well as give me solution.
my URL is like this
/operations/MatchPredictionLevel2_index.action?sgt=102&lvl2=1&tn=MatchPredictionLevel2
i want to show my url like /operations/prediction
to user and the same thing i want to do for all URL based on its purpose i want rewrite url