web-config

[size=medium][size=x-small]<?xml version="1.0" encoding="utf-8" ?>

<!DOCTYPE struts-config PUBLIC
          "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
          "http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd">


<struts-config>
<!-- 首先配置AtionForm,使用form-beans --> [/size]
<form-beans>
<form-bean name="checkUserForm" type="com.yanquan.forms.CheckUserForm" />
</form-beans>
<!-- 配置Action,使用action-mappings -->
<action-mappings>

<action path="/login" type="com.yanquan.actions.loginAction" scope="request">
<!-- 转向 -->
<forward name="success" path="/servlet/Produce_paper"></forward>
<forward name="fail" path="/index.html"></forward>
</action>

<action path="/adminLogin" type="com.yanquan.actions.SplitPageAction">
<forward name="pagelist" path="/admin/temp.jsp"></forward>
<forward name="error" path="/admin/studentManager.jsp"></forward>
</action>

<action path="/admin/checkUser" type="com.yanquan.actions.checkUser" name="checkUserForm" scope="request">
<forward name="success" path="/admin/admin_index.jsp"></forward>
<forward name="fail" path="/admin/login.jsp"></forward>
</action>

</action-mappings>

    <message-resources parameter="MessageResources" />

</struts-config>
[/size]

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