Http://www.cnblogs.com/younes/archive/2011/12/21/2295759.html
Using MyEclipse to build the SSH framework Struts Spring Hibernate
1. New a Web project.
2. Right-click the project to add struts support for the project.
Click Finish. The SRC directory has more struts.xml configuration files.
3. Use MyEclipse Database Explorer to establish a data source.
---------------------to add someone else's article yourself-------------------------------
Window->show view->other-> input "db" found, done
The intention is to compare with the handwriting jdbc, but do not have the same name as the original handwriting connection.
--------------------------------------------------- !!!!!!!! -----------------------------
New a data source. Fill in the data source information.
Click Test Driver, if successful display:
Click OK and click Finish.
4. Add spring support for the project.
Select five packages, after which the jar Library installation as.
Click Next.
By default click Finish.
5. Add hibernate support to the project.
The default package, change jar Library installation.
Click Next.
Choose whether to establish Hibernate's own profile or merge it into Spring's configuration file. Select Merge, change the point check box, and click Next.
Select existing Spring configration File and click Next.
Select the data source that we just created. Click Next.
Remove the check box tick and click Finish.
6, publish the project, you can now access the project JSP page.
7, follow-up work.
Add spring configuration and monitoring to Web. Xml as follows.
<!--spring configuration and monitoring start-
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/classes/application*.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<!-end--
8, the end.
Building the SSH framework (GO)