精通Java语言对SSH三大开源框架有一定了解的朋友请进.

来源:百度知道 编辑:UC知道 时间:2024/05/17 00:33:49
现急需要.SSH三个框架的配置笔记.就是在applicationContext.xml中加的依赖注入以及在struts-config.xml和web.xml中的加入的那些配置

上面的是applicationContext.xml
这个是:struts-config.xml

<struts-config>
<data-sources />
<form-beans >
<form-bean name="userForm" type="com.ssh.struts.form.UserForm" />

</form-beans>

<global-exceptions />
<global-forwards />
<action-mappings >
<action
attribute="userForm"
input="/register.jsp"
name="userForm"
parameter="operate"
path="/user"
scope="request"
type="com.ssh.struts.action.UserAction">
<forward name="suc" path="/jsp/success.jsp" />
<forward name="failed" path="/jsp/register.jsp" />
</action>

</action-mappings>

<controller>
<set-property prop