aspose file tools
The moose likes Struts and the fly likes Why different default FilterDispatcher? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Why different default FilterDispatcher?" Watch "Why different default FilterDispatcher?" New topic
Author

Why different default FilterDispatcher?

raj malhotra
Ranch Hand

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

org.apache.struts2.dispatcher.FilterDispatcher

But when i use Myeclipse to generate struts2 project, i see different class declared in the web.xml i.e.
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter

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

Joined: Aug 03, 2008
Posts: 9189
    
    2

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: http://aspose.com/file-tools
 
subject: Why different default FilterDispatcher?
 
Similar Threads
Struts2 namespace url problem
Struts2 Annotations
problem with starting Struts2
struts2 question!