Hi I have a login page which has two textboxes for name and pasword.
Once the user submits the information the servlet sends it a cookie which contains the login and password so that the user doesn't have to type it again when he comes to this address. Anyways I wanted to ask what would be the proper way of reading the cookies when the JSP page is loaded.
I am currently using the following method which works. But i have been told using scriptlets is a bad practise... which i agree so is there any better way to accomplish this
My current jsp looks something like this
One more thing which bothers me is that if there are no cookies my textbox has a "/" written in it why is that ??