This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Tomcat and the fly likes form based security question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "form based security question" Watch "form based security question" New topic

form based security question

Jim Babcock
Ranch Hand

Joined: Dec 03, 2004
Posts: 55

Forgot to mention that I'm using Tomcat 5.5x

I'm using form based security on my realms and I'd like to make what menus are available to the user based on their login, which means that I need a login button. I've done this, just pointing the user at the login page and it works... except that there is now where for the security app to redirect it to (I'd like it to reload the initial page with new menus available based on user_roles).

Is there a more elegant way to do this than to create a realm thats open to every role and has nothing more than a page that redirects to the home page.


[ June 30, 2005: Message edited by: Jim Babcock ]
I agree. Here's the link:
subject: form based security question