The basic Dao Layer Based on Struts2, Spring, and Hibernate that contains multi-condition query pages helps implement the jar package

Source: Internet
Author: User

The basic Dao Layer Based on Struts2, Spring, and Hibernate that contains multi-condition query pages helps implement the jar package

Common Operations for operating databases are addition, deletion, query, and modification. It is too troublesome and unnecessary to write these operations once every time. It is too painful to Write multi-condition queries and pagination, so I took the time to write a dao help jar and import it! You don't have to worry about my projects anymore!

Reprinted, please specify the source !!!

Instructions for use:

1. For more information about how to use classes, see the document!

2. Paging jsp writing. You only need to package the paging condition in

And copy the pageView. jsp file in pageJsp in the jar file. Import it under the Data Display !!!

3. You need to configure it in the spring configuration file applicationContext. xml:

  
  
  
  
   
  
  


There are various configuration file samples in the config of the jar package. You can refer

Note:The Form id must be "pageForm"

: Http://download.csdn.net/detail/liang5630/8133017


The test is as follows:


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.