Hello All,

        I just have a quick question concerning struts 2 namespaces. Mainly, 
are they unique?

        I have a book "Practical Apache Struts 2 Web 2.0 Projects" which states 
that:

        "The name attribute as well as the namespace attribute must be unique. If 
not Struts 2 will not startup correctly.".

        Which seems like the straight answer to my question, but upon trying 
this I found it to not be true. I am able to define 2 packages with the same 
namespace ala:

        <package name="testPrivatePages" extends="private" namespace="/test">

        <package name="testPublicPages" extends="public" namespace="/test">

And all actions in both these packages work correctly. So am I setting myself up for disaster here, or is this a acceptable declaration? If it's ok, then is there some rule as to how Struts 2 will differentiate between 2 actions with the same name, but in different packages?

Thanks,
Tim

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to