<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config> <form-beans> <form-bean name="loginForm" type="oa.LoginForm"/> </form-beans> <global-exceptions>
</global-exceptions> <global-forwards> </global-forwards> <action-mappings> <action path="/canlender" forward="/WEB-INF/jsp/canlender.jsp"/> <action path="/error" forward="/WEB-INF/jsp/error.jsp" /> <action path="/top" forward="/WEB-INF/jsp/top.jsp" /> ... <action path="/topsale" forward="/WEB-INF/jsp/topsale.jsp" /> <action path="/isOvertime" forward="/WEB-INF/jsp/isOvertime.jsp" /> <action path="/left" forward="/WEB-INF/jsp/left.jsp" /> <action path="/leftsale" forward="/WEB-INF/jsp/leftsale.jsp" /> <action path="/main" forward="/WEB-INF/jsp/main.jsp" /> <action path="/mainface" forward="/WEB-INF/jsp/mainface.jsp" /> <action path="/mainfaceSale" forward="/WEB-INF/jsp/mainfaceSale.jsp" /> <action path="/bar" forward="/WEB-INF/jsp/bar.jsp" /> <action path="/login" forward="/WEB-INF/jsp/index.jsp" /> <action path="/welcome" forward="/WEB-INF/jsp/welcome.jsp" /> <action path="/logoff" forward="/WEB-INF/jsp/logoff.jsp" /> <action path="/exit" forward="/WEB-INF/jsp/exit.jsp" /> <action path="/processlogin" type="oa.LoginAction" name="loginForm" scope="request" validate="true" > <forward name="success" path="/welcome.do"/> <forward name="failer" path="/login.do"/> </action> </action-mappings> <controller> </controller> <message-resources parameter="resources.application"/>
</struts-config> 我写的大概格式就是这样了...