What's new with hibernate to complete the question class

Source: Internet
Author: User

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

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.