struts简单配置

<?xml version="1.0" encoding="UTF-8" ?>

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

<struts>
<!--package 标签必须要有-->
 <package name="default" extends="struts-default"> 
<action name="loginAction" class="com.hrsys.action.LoginAction">
<result name="SUCCESS">/WEB-INF/employee/index.jsp</result>
<result name="ERROR">/WEB-INF/employee/error.jsp</result>
</action>

</package>

</struts>

 1、配置package标签;

2、配置action类;

3、配置结果处理;

posted @ 2016-05-05 23:34  run127  Views(89)  Comments(0Edit  收藏  举报