| Author |
What is the motivation to use filters in a struts application
|
sid sree
Ranch Hand
Joined: Jun 28, 2007
Posts: 186
|
|
Hi, I am new to struts & from my limited understanding i guess that all my requests would pass through the action servlet(Controller) in the case all my authentication code can be placed here . Assuming my motivation to create a filter is to implement security , cannot my action servlet just do that job ? Thanks in advance
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26489
|
|
|
An action servlet can do it. So can a filter or a request dispatcher. note that a filter can be reused if you have more than one servlet or application.
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
 |
|
|
subject: What is the motivation to use filters in a struts application
|
|
|