Javaweb Learning 003-Simple login page feature implementation

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.