Hi,
Any advice on the following would be greatly appreciated.
I'd like to write my own "j_security_check" servelt. Thus we may have Form-based-login, but the login page would have:
< form action=myServletUrl .. >
Instead of the standard
< form action=j_security_check ... >
"myServlet" would validate the user/password, and if successful, would redirect the user to some fixed "welcome.html" page.
The reason for this customized
servlet is crazy requirements (least of them being, login done using GET instead of POST, stupid as it might sound).
My question: how would "myServlet" tell the container that login has been successful ? Because I imagine the container checks the session for some "logged in" flag , of checks the request for presence of userPrincipal. If "myServlet" can't fix this data, then the container won't know user is logged in, and will repeatedly prompt him to login...
If it matters, we're using websphere 5.1.1 (
j2ee 1.3).
Thanks a lot
