Re: Setting up JDBCRealm for form authentication

2008-05-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Carol, Carol Cheung wrote: | http://hostname:port/appname/jsp/welcome.jsp | | I've secured welcome.jsp with /jsp/welcome.jsp So, you request /jsp/welcome.jsp and are redirected to /jsp/login.jsp, then you enter a valid username and password and you

Re: Setting up JDBCRealm for form authentication

2008-05-23 Thread Carol Cheung
On 23/05/2008 15:53, Christopher Schultz wrote the following: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Carol, Carol Cheung wrote: | Thanks Christopher Schultz for pointing out my error: the url pattern | should be /jsp/welcome.jsp. | | Now, I'm able to see login.jsp when requesting welcom

Re: Setting up JDBCRealm for form authentication

2008-05-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Carol, Carol Cheung wrote: | Thanks Christopher Schultz for pointing out my error: the url pattern | should be /jsp/welcome.jsp. | | Now, I'm able to see login.jsp when requesting welcome.jsp. | If I enter an incorrect login/password combination, I g

Re: Setting up JDBCRealm for form authentication

2008-05-23 Thread Carol Cheung
On 20/05/2008 15:31, Carol Cheung wrote the following: Hi, Here's a part of my web.xml: user user Secure User Pages SecureUserPages /index.jsp /welcome.jsp user user FORM /login.jsp /loginEr

Re: Setting up JDBCRealm for form authentication

2008-05-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Carol, Carol Cheung wrote: | /welcome.jsp [snip] | The URL is | http://hostname:/appname/jsp/welcome.jsp Your URLs are mismatched. You are protecting "/welcome.jsp", but then requesting "/jsp/welcome.jsp". You'll want to either move the

Re: Setting up JDBCRealm for form authentication

2008-05-20 Thread Carol Cheung
On 20/05/2008 15:04, Mark Thomas wrote the following: Carol Cheung wrote: Hi, I am very new to the aforementioned subject. As hinted in subject, I am trying to set up a web application using form authentication. I have set up server.xml according to the steps specified at http://tomcat.apac

Re: Setting up JDBCRealm for form authentication

2008-05-20 Thread Mark Thomas
Carol Cheung wrote: Hi, I am very new to the aforementioned subject. As hinted in subject, I am trying to set up a web application using form authentication. I have set up server.xml according to the steps specified at http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html for JDBCRealm Fo

Setting up JDBCRealm for form authentication

2008-05-20 Thread Carol Cheung
Hi, I am very new to the aforementioned subject. As hinted in subject, I am trying to set up a web application using form authentication. I have set up server.xml according to the steps specified at http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html for JDBCRealm For the application, I