我给你一个例子 你参照你自己的工程改改
1.<struts>
2. <package name="tutorial" extends = "struts-default">
3. <action name="Login" class="com.gyj.tutorial.LoginAction">
4. <result name="success" type="chain">GetBook</result>
5. <result name="error">/error.jsp</result>
6. </action>
7.
8. <action name="GetBook" class= "com.gyj.tutorial.GetBooksAction">
9. <result name="success">/showBook.jsp</result>
10. <result name="login">/login.jsp</result>
11. </action>
12. </package>
13.</struts> |