wood burning stoves 2.0*
The moose likes Struts and the fly likes |Solved| - How to configure Global Interceptor?.. (Struts2) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "|Solved| - How to configure Global Interceptor?.. (Struts2)" Watch "|Solved| - How to configure Global Interceptor?.. (Struts2)" New topic
Author

|Solved| - How to configure Global Interceptor?.. (Struts2)

Leonardo Carreira
Ranch Hand

Joined: Apr 07, 2009
Posts: 489

Hi Friends...

I Have a little question about Interceptor in Struts2...
Is it possible to create an Global Interceptor which will used in all of our "package"?..
assume that i have an interceptor class.. and i configure it struts.xml like this one..


for another packages i do configure same..

how to configure the global interceptor?..
maybe we just call it in our packages like this one..


Sorry, perhaps my english language isn't too good.. Prepare for SCJP 6, Please God help me.. ☼
References : [Java.Boot] [JavaChamp] [JavaPrepare]
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Just make a "parent" package (as you did) that extends struts-default, and have your other packages extend that.

(There's no need to extend *both* packages if the parent package already extends struts-default.)
Leonardo Carreira
Ranch Hand

Joined: Apr 07, 2009
Posts: 489

Alright.. Thanks David..
its run well..

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: |Solved| - How to configure Global Interceptor?.. (Struts2)
 
Similar Threads
ModelDriver Interceptor + not getting my object
Problem With I18n feature of Struts2
struts2 + interceptor
struts2: what kicks in first- the interceptors or the form's validation?
struts2 problem