Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to make struts2 apllication 0 configurable

 
varaprasad mutyala
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI Friends,

I am working on struts 2.

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.

i am confused about this.....


Any help will appreciated greatly.



 
Vinod Tiwari
Ranch Hand
Posts: 466
1
IntelliJ IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is 0 configuration??? Sorry new to it...
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic