Effect Show:
Add a modal box after clicking the Add button
The question account and the account type have a drop-down box and the contents of the drop-down box are the same as the database
And the score of the topic type will change with it.
2. Function implementation steps:
One: When you click the Add button, perform the action to get the contents of the drop-down box and jump out of the modal box
The change of the drop-down box score of the topic type and the radio and checkbox conversion of the answer
Three: Click Save to add data to the database page jump to the list homepage
Implementation of the 3.DAO layer
There are two main functions are to get all the accounts in the database plus the type table to get all the topic types
4.controller Layer
The code resolves to: first Instance session one HashMap named Resultmap
The subject information that is queried is then placed in the testtypelist of the Examtesttype information that is queried in subjectlist
Then the instances of the respective Vo objects are instantiated and the subjectlist and testtypelist are looped to the respective Vo objects.
These assigned VO objects are then placed in their respective subjectlistvo and Testtypelistvo
Finally, the Subjectlistvo, Testtypelistvo, is placed in the Resultmap to return.
4.jsp page
Added modal box
Js:
Step one in here, and basically complete the next step of implementation three
6.controller Layer
About Commonmessageresultvo: Primarily to save the returned true or false and some error messages
7.js
The point is to get the answer
Over
What's new with hibernate to complete the question class