invalid paths - how are they handled

2005-10-07 Thread Bosko Vukojevic
Two of our existing apps are built with different Struts versions:
1.1 and 1.0
 
I am not able to find information on how Struts framework handles invalid paths 
or where to tweak the existing capability. 
 
If this is a valid path:
/en/ca/home.do
what is going to be returned to the user in this case:
www.ourApplication.com/app/en/ca/homeF.do
 
Some kind of existing HTTP error (404 or similar) or something else?
 
thanks ...


Re: invalid paths - how are they handled

2005-10-07 Thread Laurie Harper

Bosko Vukojevic wrote:

Two of our existing apps are built with different Struts versions:
1.1 and 1.0
 
I am not able to find information on how Struts framework handles invalid paths or where to tweak the existing capability. 
 
If this is a valid path:

/en/ca/home.do
what is going to be returned to the user in this case:
www.ourApplication.com/app/en/ca/homeF.do
 
Some kind of existing HTTP error (404 or similar) or something else?


If you don't have an action mapping that matches /en/ca/homeF.do 
(either explicitly or using wildcards) then Struts will do the same 
thing the Container would for an invalid URL not mapped to Struts: 
return a 404 error.


I'm not sure where (or if) that's documented, but it's trivial to test 
and see for yourself.


L.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]