First of all, the topic: study is not to see how long you learn, the focus is to learn how much;
This requires efficiency . I've been here three hours, but how effective is it? It's just a simple thing to do.
Login Page
Interact with the database to determine whether the login was successful. I just realized an account, if need a lot of accounts, how to deal with?
Compilation of User's Entity,dao,biz,web
The classes in entity are written according to the columns of the table in the database as the properties of the class, and declare the constructor method of the parameter, the Get/set method, the Tpstring method
The DAO implementation class is written in the following: The user's JDBC write ① open the database connection ② write the SQL statement ③ execute the SQL statement ④ return the result set ⑤ close the database connection
The servlet in the web needs to write: The login button that corresponds to the login page, and each mouse click event corresponds to a servlet. Servlets are some of the actions on the page, answer 4 questions, as mentioned earlier.
The implementation of the Biz class is written inside: Return the DAO implementation class directly to the biz
Now implementation of the simplest login page.
Next: Improve the content of the login Success page after the jump is written.
page layouts, styles, function actions
The focus is on functional operation, the other two are the front end can be done
Javaweb Learning 003-Simple login page feature implementation