This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts2 About using AbstractInterceptor 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 "Struts2 About using AbstractInterceptor " Watch "Struts2 About using AbstractInterceptor " New topic

Struts2 About using AbstractInterceptor

RaviNada Kiran
Ranch Hand

Joined: Jan 30, 2009
Posts: 528
I am getting confused in using AbstractInterceptor of webwork

what is so significance of AbstractInterceptor as its methods are different .

why can't i use a normal class which impleents Interceptor interface and override the init service and intercept().

My actual question is what is the significance for using AbstractInterceptor class.

If you want something you never had do something which you had never done
Ankit Garg

Joined: Aug 03, 2008
Posts: 9291

Well I guess it is only there to save you from overriding the init and destroy method if you don't want to override them...

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
I agree. Here's the link:
subject: Struts2 About using AbstractInterceptor
Similar Threads
HFS: ambiguity in coffee cram ?
Astract Class
Struts2 customized Exception handler