The study of Web project design and development is mainly based on the development of Web programs in the last semester to add a thought and a deeper understanding.
before learning, we need to download the relevant software--myeclipse and configuration file jdk, Tomcat. Add the rest of the Tomcat and JDK except for the Tomcat and JDK that MyEclipse comes with.
This time the study content is related with the dbhelper. The specific contents are:
I. Preparation of procedures
1. Create an item project
2. Build the DBHelper package in the SRC directory and write out the Dbhelper-class file
3. Write the JSP file: Modify the login page in the original index.jsp file, and then create a new file named login.jsp in which to write the relevant SQL statement and Judgment statement
4. Add a link configuration file
Second, the operation of the program
Click Index.jsp to run, jump out of the page for the login page, enter the database user name and password, enter the correct login is successful;
Third, modify the code and test
When the code appears incorrectly and the page is displayed incorrectly, you should check and test more.
Experience: The most important thing in learning program development is the multi-knock code. Learning a language is not to hold a book to see on the line, with the actual more than a dozen code to see the code of others to learn and communicate, do not understand the question to ask classmates and teachers, in the classroom time to understand the practice of teacher teaching, the classroom more practice.
Web project design and development--dbhelper