16, 17th, two days, the end of the JSP learning, began the project of practical learning
The first step is to add the simplest
In this, the link to the database, the indirect expansion of the JDBC Review, in which the database and the teacher gave the textbook does not match, so the time to pause in the link data is very long, in the change over and over ORA-12505 error no results, The most stupid way to reinstall an Oracle database, naming it with the same name as the teacher, resolves the database link failure problem.
The second step is to find the operation
With the first process, this speed is a bit faster, while you are familiar with the process while completing the find operation, and are familiar with the process of data flow, from page-to-servlet-to-service------------ Output back. And in the servlet to determine whether to error, in order to output the wrong page or result
The third step is to delete the operation
When doing the delete operation, because there is less than one input tag in the JSP page (the tag is to determine the value of the action and invoke different functions in the servlet), so for a long time you have not been able to solve the problem, This side reflects the unfamiliar process and the ambiguity of the role of space, is the future need to strengthen the place
The fourth step is to modify the operation
In the modification operation, you can already know the approximate process, you can take the initiative to write code, not only can see the teacher's code to recall the code process. At the same time, the modification operation is required to query one of the operations, so you need to write two methods in DAO, servlet and service, respectively, to find 1 rows of data, and update operations.
08.17 "JSP"--html+css+js+jsp+servlet+oracle Simple Project Practice