Struts2,spring,hibernate three-frame integration (SSH)

Source: Internet
Author: User

I. Building STRUTS2

1). Import the Struts2 jar package

2). Writing Web. xml

3). Writing JSP pages

4). To create an action class, the action class inherits the Actionsupport class

5). Create Struts.xml

two. Build Spring

1). Import the Spring jar package and import a struts2 provided plug-in package

2). Create a Applicationcontext.xml file

Modify Struts.xml

3). Configure spring monitoring in Web. xml

Three. Setting up Hibernate

1). Import Hibernate jar Package

2). Writing the Hibernate.cfg.xml configuration file

3) Write the mapping file User.hbm.xml

Struts2,spring,hibernate three-frame integration (SSH)

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.