<struts>
<constant name="struts.i18n.encoding" value="gbk"/> 常量定义,处理 post参数
<package name="xxx" extends="struts-default" namespace="/">
<interceptors> --拦截器定义
...
</interceptors>
<action name="xxx" class="全路径" method="xxx">
<result >/ok.jsp</result><!--没有name,默认是"success"。没有类型,默认是dispatcher(请求转发).
type:dispatcher(请求转发,保留action数据)
redirect(重定向 )
redirectAction(重定向到下一个action)
chain(action链,链中的下一个action,采用请求转发.前一个action的数据还在)
stream(采用字节流方式传递数据) .
</action>
</package>
</struts>