struts-config.xml 配置

<?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>

你可能感兴趣的:(java,apache,xml,struts)