Hello.

Another question.

In my struts.xml I have a few packages.
One with name="default" contains the actions located at the
context root.
Another package with name="user", which I access with
namespace="user" in the <s:url> tags has other actions.

Now, I just noticed that actions defined in package "user"
are accessible also at the root context and in other packages
(by packages I mean the path in the request URI between the
context and the action name)!

For instance action actA defined in package pkgB and I believed
it would only be accessible at a URL like this:
http://host/context/pkgB/actA.action

but in fact it is also accessible via a URL like:
http://host/context/pkgA/actA.action
http://host/context/actA.action
or even with an unexistant package name like
http://host/context/doesntExist/actA.action

It then seams that the package name is irrilevant to the
framework while mapping the request URI to the action?

What is the meaning of the packages then?

Best regards.

--
Robi

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

Reply via email to