This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Struts and the fly likes Configuring a Interceptor to a Struts Action class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Configuring a Interceptor to a Struts Action class" Watch "Configuring a Interceptor to a Struts Action class" New topic
Author

Configuring a Interceptor to a Struts Action class

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hello ,
Please help me in configuring my single Interceptor to my Action class.

This is my Interceptor class



This is inside my struts.xml file :



Now please tell me how can i add this interceptor to My Struts Action class . ( I have written this but don't know further how to associate them )

Please help




Save India From Corruption - Anna Hazare.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I've asked you a half-dozen times to read the documentation. You refuse. Why? Being able to locate and understand answers *on your own* is a *critical* skill for any responsible developer.

http://struts.apache.org/2.1.8/docs/interceptor-configuration.html
 
Consider Paul's rocket mass heater.
 
subject: Configuring a Interceptor to a Struts Action class