struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Piero Sartini <>
Subject Re: s2: user-frendly urls in struts2
Date Sun, 27 Jul 2008 20:05:53 GMT
Am Sonntag, 27. Juli 2008 21:44:04 schrieb Chris Pratt:
> You might want to look into the RESTful URL's plugin.  But you can
> just override the extension.  I usually set mine to .html (to hide the
> technology being used), but I believe you can set it no nothing as
> well. I use the following in struts.xml, I believe you can set the
> value to "" also.
>   <constant name="struts.action.extension" value="html"/>

Setting the extension to "" is a bad idea. In this case, the default action 
mapper thinks every ressource (png,jpg,js,css,etc) is an action.

However, this may work with the REST plugin.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message