Yoav,

   Thanks, I did not know whether there was anything I could put in the
web.xml file under the security-constraint for some sort of redirect for
the role.

Chad 

On Tue, 2003-12-16 at 13:19, Shapira, Yoav wrote:
> Howdy,
> You can write a simple filter that uses request.isUserInRole to control
> the redirect.  I think I wrote a rule for the balancer webapp (tomcat 5)
> that does just that.
> 
> Yoav Shapira
> Millennium ChemInformatics
> 
> 
> >-----Original Message-----
> >From: chad kellerman [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, December 16, 2003 12:51 PM
> >To: Tomcat Users List
> >Subject: redirecting based on role name
> >
> >hello everyone,
> >
> >    I have a site that uses form authentication thru JDBCRealm.  I have
> >my webapp root as /ROOT/ with 3 directories.  I have also set up the
> >web.xml file with 3 different security constraints based on the 3
> >directories in /ROOT/.
> >
> >    My questions is, can I redirect a successful login to a specified
> >directory based on the role_name I assigned the user in the mysql
> >database?
> >
> >     For example,  if I have configured bob with the role_name of
> >admin.  Can I redirect his url to /ROOT/ADMIN by retrieving his
> >role_name?
> >
> >  Can any one point me in the right direction?  Any help would be
> >appreciated.
> >
> >Thanks,
> >Chad
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> This e-mail, including any attachments, is a confidential business communication, 
> and may contain information that is confidential, proprietary and/or privileged.  
> This e-mail is intended only for the individual(s) to whom it is addressed, and may 
> not be saved, copied, printed, disclosed or used by anyone else.  If you are not 
> the(an) intended recipient, please immediately delete this e-mail from your computer 
> system and notify the sender.  Thank you.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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

Reply via email to