HI All,

i am very new in java.
Can any one give me the simple code for login form.
It should be like followin senario.
Loginform submit button will call servlet and servlet will call session bean to keep trace of session. then session bean will call entity bean which will talk to data base and retrive user name and password and it will send to session been session bean checks the given user name and password and it it matches then move to other page otherwise show some error message.

If anyone have code for this please send me............