File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 9465

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
It's not a secret anymore!