s2: user-frendly urls in struts2

2008-07-27 Thread [EMAIL PROTECTED]
Hi, I have an action which can be reached by - http://hostname/friends/viewpix.action - http://hostname/friends/viewpix.action?id= My client doesn't want the *.action* to appear in the urls so is there a way to launch the action by using friendly urls, e.g., like these: -

Re: s2: user-frendly urls in struts2

2008-07-27 Thread 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.

Re: s2: user-frendly urls in struts2

2008-07-27 Thread Piero Sartini
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

Re: s2: user-frendly urls in struts2

2008-07-27 Thread [EMAIL PROTECTED]
Thanks Chris and Piero. I'll give it a try. On Sun, Jul 27, 2008 at 4:05 PM, Piero Sartini [EMAIL PROTECTED]wrote: 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