java - User friendly URLs in struts2 -
my project uses both struts1 , struts2 frameworks, need change urls user friendly. there plugins remove .action , .do extension urls..?
please attach links of documentation along comments. in advance.
you can change action extension in struts 2 adding
<constant name="struts.action.extension" value=".foo"/>
to struts.xml
file (or properties file etc.)
to remove give empty value.
<constant name="struts.action.extension" value=""/>
resources : http://struts.apache.org/release/2.0.x/docs/strutsproperties.html
but extensions shouldn't worry unless designing website users access web pages url.
for normal web application wouldn't worry it.
Comments
Post a Comment