File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Creating Form Based Security Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Creating Form Based Security" Watch "Creating Form Based Security" New topic

Creating Form Based Security

Eric Bic

Joined: Apr 12, 2004
Posts: 7
Hi, im having trouble making my login page to work, my directory looks as following (Im using Tomcat by the way so everything is in the webapps directory):
in the index page i ask a user to go to the Manager.html or User.html,
ive specified seciruty constraints for the manager in the web.xml file, so i was expecting to be redirected to the login page when trying to access the manager.html but it just goes straight to the Manager.html without asking for login, my web.xml looks as following:
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns=""
<description>An application that makes use of a user-defined login form
<description>SSL not required</description>
<description>Let only managers use this app</description>
<description>The role of manager is one that can use our application.
is there something ive missed, some jar? i dont know im new to this, i would really apprecieate some help
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Welcome to JavaRanch!
We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.
Thanks Pardner! Hope to see you 'round the Ranch!

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Eric Bic

Joined: Apr 12, 2004
Posts: 7
someone? anyone? its a really simple questiong
I agree. Here's the link:
subject: Creating Form Based Security
It's not a secret anymore!