Two Laptop Bag
The moose likes Struts and the fly likes Why different default FilterDispatcher? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Why different default FilterDispatcher?" Watch "Why different default FilterDispatcher?" New topic

Why different default FilterDispatcher?

raj malhotra
Ranch Hand

Joined: Feb 22, 2007
Posts: 288
I am learning strtus2 from struts2 in action book.I see default filter class as


But when i use Myeclipse to generate struts2 project, i see different class declared in the web.xml i.e.

Why is different declarations?Are they specific to struts2 version.In case yes what is there functional difference?
Ankit Garg

Joined: Aug 03, 2008
Posts: 9463

Checkout the documentation of FilterDispatcher class, it says
Deprecated. Since Struts 2.1.3, use StrutsPrepareAndExecuteFilter instead or StrutsPrepareFilter and StrutsExecuteFilter if needing using the ActionContextCleanUp filter in addition to this one

David must know the exact reason why it has been deprecated (I didn't knew that it was deprecated so don't know the reason as well )...

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
I agree. Here's the link:
subject: Why different default FilterDispatcher?
It's not a secret anymore!