in a struts2 struts.xml file, we define a package:
<package name="example" namespace="/example" extends="struts-default">
where is this package definition used? and the namespace?
Reason i ask is, if i change the namespace to something else, say, namespace="vvm", the example throws a "resource not found" exception.
Thanks. I did read that part.
What was confusing me was that if i changed the package namespace to /vvm and then requested the url vvm/vvm.action
it threw an error: "there is no namespace /". i can't tell if it's getting confused because my java src package is also vvm.
whereupon, i get the following error:
There is no Action mapped for namespace / and action name VVMAction
now, changing the package namespace to anything else like "/junk" and updating index.html appropriately works.
which is why my suspicion is that the name clash of vvm for namespace and for the package is causing this problem.
anyways, it works now, but just wanted to provide you with a clearer picture, and see what you thought.
Thanks for your help.