Based on Struts2, Spring, hibernate implementation of the basic DAO layer help jar package implementation with multi-conditional query paging

Source: Internet
Author: User

Operation of the database is commonly used to delete and change, every time you write these operations too cumbersome, nor necessary, especially to write multi-conditional query and paging, too painful, so the time to write a DAO help jar, import is done! Mom, there's no need to worry about my project anymore!

Reprint please specify the source!!!

Instructions for use:

1, the use of the class please refer to the documentation, do not know how to combine examples demo!

2, paging JSP writing, just the page condition package in <form action= "address" id= "Pageform" > can, and then the jar pagejsp in the pageview.jsp copied out, in the data display below the introduction can!!!

3. It needs to be configured in spring's profile applicationcontext.xml:

<!--automatic scanning and assembly bean--><context:component-scan base-package= "Com.liang" ></context:component-scan> <!--Configure declarative transaction management (in an annotation-based manner)--><bean id= "Txmanager" class= " Org.springframework.orm.hibernate3.HibernateTransactionManager "><property name=" sessionfactory "ref=" Sessionfactory "></property></bean><tx:annotation-driven transaction-manager=" TxManager "/>


There are various configuration file examples in the config of the jar package, which can be referenced

Note the ID of the:<form> form must be "Pageform"

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


The test is as follows:


The underlying DAO layer help jar package implementation that contains multi-conditional query paging based on STRUTS2, Spring, hibernate

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.