Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 14195 invoked from network); 1 Aug 2003 14:52:05 -0000 Received: from ns11.dnsprotect.com (HELO velocity.dnsprotect.com) (209.50.252.235) by daedalus.apache.org with SMTP; 1 Aug 2003 14:52:05 -0000 Received: from [65.215.131.2] (helo=badboy) by velocity.dnsprotect.com with esmtp (Exim 4.20) id 19ibG8-0000rw-6i for tomcat-user@jakarta.apache.org; Fri, 01 Aug 2003 10:51:56 -0400 From: "Gregg Bolinger" To: Subject: JDBCRealm Date: Fri, 1 Aug 2003 09:52:00 -0500 Message-ID: <000601c3583c$790d1b50$cd00a8c0@badboy> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0007_01C35812.90371350" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - velocity.dnsprotect.com X-AntiAbuse: Original Domain - jakarta.apache.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedthought.com X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------=_NextPart_000_0007_01C35812.90371350 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I have been struggling trying to get this to work and I can't tell if I am doing something wrong, or leaving something out, or what. Below is all my code, then I will say what is happening: server.xml (relivant snippit) code: _____ _____ web.xml (relivant snippit) code: _____ SecurePages Security constraint /secure /secure/* GET POST PUT admin NONE FORM /login.jsp /loginerror.jsp admin _____ login.jsp code: _____ <%@page contentType="text/html"%> JSP Page
UserName
Password
_____ And my database has 2 tables users Username Password user_roles Username Role --------------------------------------------------------- Now, I have a page in a folder called secure called AddReference.jsp. When I try and access this page, I do get redirected to login.jsp. I enter my username and password that I have stored in the database and after clicking submit, I am taken to my loginerror.jsp page. I should be redirected back to AddReference.jsp. I am entering the correct username and password as I only have one entry. I get no compilation errors or Tomcat errors when loading or stopping. If anyone has some insight to my problem, I would be greatly appreciated. Thanks Gregg Bolinger ------=_NextPart_000_0007_01C35812.90371350--