• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to make struts2 apllication 0 configurable

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.



 
Ranch Hand
Posts: 466
1
IntelliJ IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is 0 configuration??? Sorry new to it...
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
passwords must contain 14 characters, a number, punctuation, a small bird, a bit of cheese and a tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic