i have one doubt regarding 0 configuration in struts 2.
If we are using annotations for all, is it necessary to keep struts.XML in my Application.
and i have on more doubt.
To extend default stack (interceptors) we will use the following code in package.XML.
<package name="example" name space="/example" extends="struts-default">
but in the case of 0 configuration , which annotations we have to use to make a package extends defalt stack of interceptors offered by Struts 2 frame work.
varaprasad mutyala wrote:If we are using annotations for all, is it necessary to keep struts.XML in my Application.
No, but if you're setting any constants, you might want to have it anyway.
but in the case of 0 configuration , which annotations we have to use to make a package extends defalt stack of interceptors offered by Struts 2 frame work.
If you look at the convention plugin you'll see that it already extends the default package.