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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -