Use Hibernate to complete a list of question classes and view features

Source: Internet
Author: User

Effect Show:

Click the Show Questions button

The details of the question are displayed in the modal box

2.ITestdao and Testdaoimpl

Here please write your own Itestvodao and Testvodaoimpl basic and the same as above is only the entity class Examtestvo (in the preamble has VO show)

3.controller

The main use of two methods the first is findalltest the other is Gettestabyid (view the details of the question is by returning an ID in the foreground after the background to query and then return to the last page of the foreground page and then show the data returned in the background)

Because the annotation @responsebody so in the data through the ID to find the time to use Examtestvo to look for if you use examtest words can not achieve function

4.jsp page

Iterate through a list of controller returns when displaying the list of questions via foreach

modal frames for displaying information:

After the front desk obtains the data after clicking the ID and passes the AJAX to the backstage controller through the line processing backstage and then returns the processed data to the foreground front desk and then displays the data

About TestID: The contents of the first sibling element of the parent element of the current manipulation element;

Over.

Use Hibernate to complete a list of question classes and view features

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.