> I search to implements security on my wicket Application. > I plan to use Tomcat 5.X for Authentication, So I search a simple > Authentication page to use it (Email,Password,Role), do you know how to > implement this in Wicket.
If you want to use a login page that is used by the container to authenticate, you're better off just using some default login page: <form method="POST" action="j_security_check"> <input type="text" name="j_username"> <input type="password" name="j_password"> </form> It's outlined here: http://www.onjava.com/pub/a/onjava/2002/06/12/form.html Once authenticated, you can pull the Principal by doing ((WebRequestCycle)(RequestCycle.get()).getWebRequest().getHttpServletRequest().getUserPrincipal(); How you use that is up to you. Look at wicket-auth-roles for ideas. Eelco ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user