Re: Struts2 URL problem

2008-03-16 Thread Tauri Valor
Thanks Jeromy I will try your approach and let you know. Jeromy Evans - Blue Sky Minds wrote: > > At this point I'd either > a) accept it, because it's unlikely to cause really problems or ever be > noticed by a real user. It's just scrappy > b) create a custom ActionMapper derived from the

Re: Struts2 URL problem

2008-03-16 Thread Jeromy Evans
Frans Thamura wrote: hi all if i want to create the url something like this, and withour .do or .action, like REST URLs without the extension is possible by setting the property: struts.action.extension=action,, Where the double comma indicates "no extension". is smartURL the answer or

Re: Struts2 URL problem

2008-03-16 Thread Jeromy Evans
At this point I'd either a) accept it, because it's unlikely to cause really problems or ever be noticed by a real user. It's just scrappy b) create a custom ActionMapper derived from the default one that removes that feature c) Use a plugin that does b for you I don't use the DefaultActionMap

Re: Struts2 URL problem

2008-03-16 Thread Frans Thamura
hi all if i want to create the url something like this, and withour .do or .action, like REST is smartURL the answer or we must use RESTplugins, which we know we cannot mixed REST with current struts2 setting i want the url like this http://localhost:8080/cimande/profile/fthamura which fthamura

Re: Struts2 URL problem

2008-03-16 Thread Tauri Valor
Thanks Jeromy! I tried all the four solutions that youve provided..but I still have the same problem. :) Im still unable to get the error page for the wrong url with the scrappy namespace in the addressbar. If you have thought of any other solution pls let me know. I will try and let you know

Re: Struts2 URL problem

2008-03-13 Thread Jeromy Evans
Hi Tauri, I don't have time to try it myself right now, but what I meant was create an additional default package that contains no actions. I'm not sure if it will help though. The idea is that when the default action mapper can't match the namespace, it falls back to an empty back. Like th

Re: Struts2 URL problem

2008-03-12 Thread Tauri Valor
Thanks Jeromy! Ive tried creating a package with empty name space ie : then the following url : http://localhost:8080/MY_WEB/acc.register.RegistrationForm.do without the namespace works fine .. But any other way to keep my namespace in tact in the url because the above may not be acceptable

Re: Struts2 URL problem

2008-03-12 Thread Jeromy Evans
No mistake. AFAIK that's a design flaw of the default action mapper. See: http://www.planetstruts.org/struts2-blank/example/somecrap/HelloWorld.action If there's no match in a package namespace it falls back to the default package and matches a little to generously. You may be able to avoi