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: security-role descriptionuser/description role-nameuser/role-name /security-role !-- Login Authentication -- security-constraint display-nameSecure User Pages/display-name

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

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

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 url-pattern/jsp/welcome.jsp/url-pattern So, you request /jsp/welcome.jsp and are redirected to /jsp/login.jsp, then you enter a valid

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

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