Foreground connection to database process
From the foreground to the database, is the need for a process, it is a process so walk down the html--jsp--servlet--oracle/mycle
However, in order to facilitate the development of the Division of labor, will take this step is very thin! To do their own work, and more easily and conveniently developed.
This process can be clearly seen:
1 through the customer to the JSP interface operation, the operation of the data to the servlet, the image of the filter
2 in the servlet, through his steps to invoke the method in the service, so that every step of the proper data of the proper operation
3 The service will complete the preservation and encapsulation of the data.
4 borrowing DAO to operate the database, and then the database will be back to feedback
5 When feedback to the servlet, the information will be sent to a JPS or HTML or other view to feedback to the user information, to tell the user the results of this operation completed
A process is such a step-by-step completion, but each time this troublesome writing code, it will be a lot of work, so there are many frameworks to complete the more cumbersome steps, SSH is one of them!
Foreground connection to database process