There used to be (haven't checked on it for a while) a project called "Security Filter" that was a security database implementation you could package with your application. I believe it was a SourceForge project.

One of the projects I'm currently architecting has need for specialized security - above and beyond what our CMS will do (CMS will handle it to the application on a per-user bases). I'm implementing this through use of a Filter and a HTTPRequestWrapper. Oh, and I've tossed in a custom implementation of Principal to make things nice and "tidy". Once complete I'll be able to leverage standard calls like "isUserInRole" and "getUserPrincipal" to deal with my users. The nice thing is, because of the nature of filters, once I'm done with this I can jar it up, drop it in any application I write (and add to the web.xml of that app) and use the exact same thing for many other applications (I have at least 2 to get out this quarter ... they seem to be finding new ones for me to write all the time)!

Gotta love real reuse in actual practice! ;-)

Filters fit a lot of problems really nicely - even if you don't build a request/response wrapper to go along with them. They're extremely handy for the problems that they do solve.

Good Luck,

Eddie

----- Original Message ----- From: "Davi Salgueiro" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 05, 2004 1:30 PM
Subject: Authentication and Authorization



Hi Every One,

Does Struts have any type of authentication/ authorization mecanism?

Best regards,
Davi Salgueiro




---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0445-2, 11/04/2004
Tested on: 11/6/2004 12:48:22 AM
avast! - copyright (c) 2000-2004 ALWIL Software.
http://www.avast.com




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to