Re: [struts] s:url action and method separator using something other than action!method

2007-11-16 Thread Omkar Patil
Looks like you are trying for RESTful URLs, check out the REST plugin from the plugins page. It's part of standard s2 distribution 2.0.11. Also, take a look at Restful2ActionMapper javadocs. Amit Rana wrote: From: Omkar patil Amit, I am not sure if there is any easy way to achieve this. Is

Re: [struts] s:url action and method separator using something other than action!method

2007-11-16 Thread Amit Rana
From: Omkar patil Amit, I am not sure if there is any easy way to achieve this. Is there any specific reason you would like achieve this? One way could be provide your own action mapper class by extending DefaultActionMapper and overriding getUriFromActionMapping method to provide your own

s:url action and method separator using something other than action!method

2007-11-15 Thread Amit Rana
Hi, I have a url for login s:url id=loginurlid namespace=/ action=login method=input/s:url This generates a url like http://localhost:8080/myapp/login!input.action Is there a way to tell s:url to use _ or / as separator and not ! Thanks, Amit.

Re: [struts] s:url action and method separator using something other than action!method

2007-11-15 Thread Dale Newfield
Amit Rana wrote: I have a url for login s:url id=loginurlid namespace=/ action=login method=input/s:url This generates a url like http://localhost:8080/myapp/login!input.action Is there a way to tell s:url to use _ or / as separator and not ! In struts.xml you can define any name you

Re: s:url action and method separator using something other than action!method

2007-11-15 Thread Omkar patil
Amit, I am not sure if there is any easy way to achieve this. Is there any specific reason you would like achieve this? One way could be provide your own action mapper class by extending DefaultActionMapper and overriding getUriFromActionMapping method to provide your own separator. -Omkar