Meaningless Drivel is fun!*
The moose likes Struts and the fly likes how to make struts2 apllication  0 configurable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to make struts2 apllication  0 configurable" Watch "how to make struts2 apllication  0 configurable" New topic
Author

how to make struts2 apllication 0 configurable

varaprasad mutyala
Greenhorn

Joined: Jun 11, 2009
Posts: 17
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

Joined: Feb 06, 2008
Posts: 459
    
    1
What is 0 configuration??? Sorry new to it...


Vinod Tiwari | Twitter
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to make struts2 apllication 0 configurable
 
Similar Threads
Struts 2.0 performance doubt
iterate doubt
Doubt in this()
perplexed by package structure
Trouble in extending packages in Struts2.xml