struts-config.xml < struts-config > < data-sources /> < form-beans > < form-bean name ="registerForm" type ="com.skf.rss.struts.form.RegisterForm" /> </ form-beans > < global-exceptions /> < global-forwards /> < action-mappings > < action attribute ="registerForm" input ="register.jsp" name ="registerForm" path ="/register" scope ="request" type ="org.springframework.web.struts.DelegatingActionProxy" /> </ action-mappings > < message-resources parameter ="com.skf.rss.struts.ApplicationResources" /> <plug-in className="org.springframework.web.struts.ContextLoaderPlugIn"> <set-property property="contextConfigLocation" value="/WEB-INF/applicationContext.xml"/> </plug-in> </ struts-config > applicationContext.xml appliactionContext.xml < bean id = " dataSource " class="org.springframework.jdbc.datasource.DriverManagerDataSource"> < property name = " driverClassName " value = " com.mysql.jdbc.Driver " > </ property > < property name = " url " value = " jdbc:mysql://localhost:3306/rss " ></ property > < property name = " username " value = " root " ></ property > < property name = " password " value = " skf100200 " ></ property > </ bean > < bean id = " sessionFactory " class = " org.springframework.orm.hibernate3.LocalSessionFactoryBean " > < property name = " dataSource " > < ref bean = " dataSource " /> </ property > < property name = " hibernateProperties " > < props > < prop key = " hibernate.dialect " > org.hibernate.dialect.MySQLDialect </ prop > </ props > </ property > </ bean > < bean name = " /register " class = " com.skf.rss.struts.action.RegisterAction " abstract = " false " lazy - init = " default " autowire = " default " dependency - check = " default " > </ bean > </ beans >