struts-config.xml: <action attribute="CommForm" name="CommForm" parameter="operate" path="/comment" scope="request" type="org.springframework.web.struts.DelegatingActionProxy" > <forward name="blogdetail" path="/public_blog_detail.jsp" /> <forward name="fail" path="/fail.jsp" /> <forward name="suc" path="/success.jsp" /> </action> </action-mappings> <message-resources parameter="edu.myblog.ssh.ApplicationResources" /> <plug-in className="org.springframework.web.struts.ContextLoaderPlugIn"> <set-property property="contextConfigLocation" value="classpath:applicationContext.xml" /> </plug-in> hibernate.xml: <session-factory> <property name="myeclipse.connection.profile">webblog</property> <property name="connection.url"> jdbc:sqlserver://localhost:1433;databaseName=webblog </property> <property name="connection.username">sa</property> <property name="connection.password">sa123456</property> <property name="connection.driver_class"> com.microsoft.sqlserver.jdbc.SQLServerDriver </property> <property name="dialect"> org.hibernate.dialect.SQLServerDialect </property> <property name="show_sql">true</property> <mapping resource="edu/myblog/ssh/entity/Blog.hbm.xml" /> <mapping resource="edu/myblog/ssh/entity/Category.hbm.xml" /> <mapping resource="edu/myblog/ssh/entity/Comment.hbm.xml" /> <mapping resource="edu/myblog/ssh/entity/Users.hbm.xml" /> </session-factory> spring applicationContext: <beans> <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> <property name="configLocation"> <value>classpath:hibernate.cfg.xml</value> </property> </bean> <!-- dao --> <bean id="userDao" class="edu.myblog.ssh.dao.impl.UserDAOImpl"> <property name="sessionFactory" ref="sessionFactory"/> </bean> <bean id="blogDao" class="edu.myblog.ssh.dao.impl.BlogDAOImpl"> <property name="sessionFactory" ref="sessionFactory"/> </bean> <!-- biz --> <bean id="userBiz" class="edu.myblog.ssh.biz.impl.UserBizImpl"> <property name="userDao" ref="userDao" /> </bean> <bean id="blogBiz" class="edu.myblog.ssh.biz.impl.BlogBizImpl"> <property name="blogDao" ref="blogDao" /> </bean> <!-- action --> <bean name="/user" class="edu.myblog.ssh.web.action.UserAction"> <property name="userBiz" ref="userBiz" /> </bean> <bean name="/blog" class="edu.myblog.ssh.web.action.BlogAction"> <property name="blogBiz" ref="blogBiz" /> <property name="categoryBiz" ref="categoryBiz" /> </bean> </beans>