t;
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/Struts2-URL-problem-tp16020941p16089143.
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
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
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
;>>>
>>>>
>>>> Now, the following url works fine when I launch my app:
>>>>
>>>> http://localhost:8080/MY_WEB/register/acc.register.RegistrationForm.do
>>>>
>>>>
>>>> But the problem is the url when added something between my
>>>> packagename(register)and my uri (a
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
fine instead of displaying the error page. I need to get
>> an
>> error page if I give wrong url like the above.
>>
>> What is my mistake ?
>>
>> Pls advise.
>>
>
>
> -
>
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
e. I need to get an
error page if I give wrong url like the above.
What is my mistake ?
Pls advise.
--
View this message in context:
http://www.nabble.com/Struts2-URL-problem-tp16020941p16020941.html
Sent from the Struts - User mailing list archive at Nabble.com.
9 matches
Mail list logo