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、配置结果处理;