wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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="http://java.sun.com/xml/ns/j2ee"
<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
jQuery in Action, 2nd edition
subject: Creating Form Based Security
Similar Threads
<user-data-constraint> working example
Doubt on authentication
Form-based Security
HTTP Status 403 Access to the requested resource has been denied
How to secure my page