File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Why using Filter in Struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Why using Filter in Struts2" Watch "Why using Filter in Struts2" New topic
Author

Why using Filter in Struts2

Khushwinder Chahal
Ranch Hand

Joined: Oct 03, 2007
Posts: 128
Hi Good People,

In struts2 they have replace action servlet with filter dispatcher.
I want to know the reason. Why they have preferred it over servlet?
What are the reasons?
I found on net but could not find any satisfied answer.

Any body has any idea please share with me.

Regards,
Khushwinder


Khushwinder
Khushwinder Chahal
Ranch Hand

Joined: Oct 03, 2007
Posts: 128
Khushwinder Chahal wrote:Hi Good People,

In struts2 they have replace action servlet with filter dispatcher.
I want to know the reason. Why they have preferred it over servlet?
What are the reasons?
I found on net but could not find any satisfied answer.

Any body has any idea please share with me.


why dispatcher has been changed from a servlet to a servlet filter in Struts2? Anybody knows answer?

Regards,
Khushwinder
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why using Filter in Struts2
 
Similar Threads
In struts2
Displaytag Data Export Problem with Struts2
Struts2
Struts2 with Displaytag export option is not working
Static content caching problem in Struts2