In your case, mypackage3 uses the default namespace. What would happen if you browsed to http://localhost:8080/My/foobar/moo Do you have a package which matches the namespace foobar? If not, then the framework will search the packages which use the default namespace (mypackage3 in your case).
Does that answer your question?
Samanthi perera
Ranch Hand
Joined: Jan 08, 2010
Posts: 510
posted
0
then when is to invok namespace="/" ?
Mark E Hansen
Ranch Hand
Joined: Apr 01, 2009
Posts: 639
posted
0
Samanthi perera wrote:then when is to invok namespace="/" ?
I'm sorry, I'm not sure I can understand your English.
http://localhost:8080/My/moo would match the action in mypackage2 http://localhost:8080/My/foo/moo would not match the action in mypackage2 because the request references a namespace of foo
I think you're not seeing the difference between the / namespace and the default namespace. They are different. See the discussion we had on the previous thread (referenced above).