Habeeb Shaikh wrote:
1. Create a class LoginServlet.
2. Create 2 setter and getter method for empname and password.
3. In getter method you can write your any validation code like emp does not exit if it is not in database or any your simple arraylist.
4. Import LoginServlet into your .jsp class
5 Set value attribute of empname text field by using loginServlet.getEmpname()
Habeeb Shaikh wrote:hi mohini, do not called me as sir,
1. Create a class LoginServlet.
2. Create 2 setter and getter method for empname and password.
3. In getter method you can write your any validation code like emp does not exit if it is not in database or any your simple arraylist.
4. Import LoginServlet into your .jsp class
5 Set value attribute of empname text field by using loginServlet.getEmpname()
I hope you understand it.let me know if any difficulty.
Swastik
Swastik
Swastik
kunal
Swastik
Swastik
Swastik Dey wrote:prashant,
You should never compare a String object like this
it should have been (use methods of String class)
Mohini,
What you are saying is little confusing. You said that it's displaying the login error page, that means it's being redirected from the servlet, right, and again you are saying nothing happens if you click on the submit button.
Swastik
Swastik
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |