论坛首页 入门技术论坛

struts-config.xml 配置

浏览 2056 次
该帖已经被评为新手帖
作者 正文
   发表时间:2009-07-12   最后修改:2010-12-05
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">

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


  <global-exceptions/>
  <global-forwards/>
  <action-mappings>
<action path="/user"
    		name="userForm"
       		scope="request"
      		type="cn.com.hereonline.b2b.action.UserAction"
      		validate="false"
      		input="/web/page/login.jsp"
      		>
      		<forward name="success" path="/web/page/success.jsp"></forward>
      		<forward name="failure" path="/web/page/failure.jsp"></forward>
	</action>
 </action-mappings>

  <message-resources parameter="com.yourcompany.struts.ApplicationResources"/>
</struts-config>
论坛首页 入门技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics