struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Lipscombe" <adam.lipsco...@expensys.com>
Subject Newbie: Using Struts with JAAS?
Date Wed, 16 Jun 2004 09:10:45 GMT
Folks,


I am struggling to understand how to use JAAS with Struts 1.1
I need a simple-to-follow example. 


The requirement is for standard authentication and permission handling -
logging a user in and checking that they have permission to access an Action
or URL.

Should I use JAAS or home-grown security?

If I go down the home-grown route logging in a user is no problem. 
One way that occurs to me to enforce permissions is to put a check into each
JSP to ensure that the user has the appropriate role to view that page and
redirect if not.


What do people think? Is JAAS the way to go? 
If JAAS, what are the advantages in a Struts context?
Is there a simple JAAS example somewhere that I can cut and paste from?



TIA - Adam


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message