Hi again.
I got a bit sidetracked, I got it into my head to try and make this app as "secure" as possible, so I thought I'd venture into letting
tomcat handling the authentications using the FORM method in the web.xml. I did lots of googling and then created this "JDBCRealm" in the server.xml to make it connect to my mysql database to authenticate users, though it doesn't seem to work..
Heres the additions to server.xml
And to web.xml
And nothing happens basically, the login.jsp is never shown when accessing the resources. I think the problem is that I don't have a auth-constraint defining roles, but since its supposed to connect to the DB to get the roles I'm not sure what to put there...
I'm sorry, I know this is really OT and I should probably create a new
thread about it, I just thought that if its just something small that I've missed then you could just point it out? thanks