hi all, i am learning servlets and to learn about session tracking. i would like to know first how to do authentication. i tried
which is always null. i dont want to use the timcat-users.xml and then authenticate. we have some server with which i always login to computer in our network. now when i write a servelt and put these two lines i get a popup but after giving the credentials i am not able taken forward.
<web-app> ... <login-config> <auth-method>FORM</auth-method> <!--realm-name not required for FORM based authentication --> <form-login-config> <form-login-page>/formlogin.html</form-login-page> <form-error-page>/formerror.html</form-error-page> </form-login-config> </login-config> ... <web-app>
In most cases you don't need to fiddle around with the response in your own code. If you set things up properly -like Ramu hints at- and then tell the container where to look for your user information (e.g. for Tomcat that's described here), then you should be all set.
can i get some answers for this question???
As an aside, it would have been polite to put a "please" in this sentence, instead of adding three question marks. [ June 29, 2007: Message edited by: Ulf Dittmer ]