File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Leonardo Carreira
Ranch Hand
Posts: 489
Eclipse IDE Java Postgres Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..

 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 489
Eclipse IDE Java Postgres Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alright.. Thanks David..
its run well..

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic