<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<package name="" namespace="/" extends="struts-default">
<action name="userAction" class="test.app2.UserAction">
<result name="success">/success.jsp</result>
</action>
<action name="helloWorldAction" class="test.app2.HelloWorldAction">
<result name="success">/success.jsp</result>
</action>
<action name="bookAction" class="test.app2.BookAction">
<result name="success">/pattern/success.jsp</result>
</action>
</package>
</struts>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<package name="" namespace="/" extends="struts-default">
<action name="userAction" class="test.app2.UserAction">
<result name="success">/success.jsp</result>
</action>
<action name="helloWorldAction" class="test.app2.HelloWorldAction">
<result name="success">/success.jsp</result>
</action>
<action name="bookAction" class="test.app2.BookAction">
<result name="success">/pattern/success.jsp</result>
</action>
</package>
</struts>
本文详细解析了Struts框架的XML配置文件,包括其标签、元素及其作用,帮助开发者更好地理解并使用Struts进行Web应用开发。

被折叠的 条评论
为什么被折叠?



