Hello all,
I am learning my ways through Struts having done Servlets and JSPs
before. In order to have authentication functionalities with my Servlets
I used to have a user table and a roles table. Once the user logs in
he/she would be authenticated with the user name, password through
Tomcat as it was configured with the database information, table name, etc.
I would like to do pretty much the same with Struts. I have checked the
O'Reilly Struts Cookbook but, although it has great authentication tips,
it does not include a recipe to have authentication with a database. Is
there any article on how to perform it with Struts? Any books that you
would suggest?
So what I think is that I should have a model class to do this kind of
authentication rather than using the XML config files. However how would
I include all the roles in that class? Have a data structure like a list
maybe? That way I could always check for a specific role for every JSP
or action whether the user would be allowed or not. Any thoughts?
Thanks in advance,
C.F.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]