On 23/09/2010 12:22, Martin O'Shea wrote: > Hello > > I have a /myApp/displayDatasetPage which is used to display content. In this > page, I incorporate the default Tomcat login code as follows: > > <div id = "login"> > <form action='<%= response.encodeURL("/myApp/loginPage") %>' > method = "post"> > <table border = "0">
Tables for layout. How very 1997. > <tr> > <th align = "right">Username</th> > <td align = "left"><input type = "text" name = > "userName"></td> > </tr> > <tr> > <th align = "right">Password</th> > <td align = "left"><input type = "password" name > = "password"></td> > </tr> > <tr> > <td align = "right"><input type = "submit" value > = "Log In"></td> > <td align = "left"><input type = "reset"></td> > </tr> > </table> > </form> > </div> How is this 'the default Tomcat logic code'? > And path /myApp/loginPage is protected in web.xml. How is it protected in web.xml? > This seems to be alright > but if a user doesn't enter login details, or enters incorrect login > details, and then presses 'Log in' the page simply reloads. I am assuming > that this is because I have no login error page working alongside use > /myApp/displayDatasetPage to catch login exceptions. You tell us. You haven't posted your web.xml, so we can't know. > Is it possible to use /myApp/displayDatasetPage to display login errors? Or > can anyone say tell me if I catch Tomcat's login verification process to do > this? If you're using the Servlet Specification container managed authentication mechanism, it's possible. It doesn't look like you are though. If you've written your own login component, you can of course make that happen too. > Thanks > > Mr Morgan. Are you Martin O'Shea or Mr Morgan? I'm confused. p P.S. Please send one message to the list and then wait for a response. Two messages in 30 mins is a little pushy.
0x62590808.asc
Description: application/pgp-keys
signature.asc
Description: OpenPGP digital signature