include 是引入文件 forward 是重定向 好像本来就没什么关系吧~~~~ 老紫竹解释的应该是forward 和sendRedirect吧~~~~ 混乱中~难道是我弄错拉~~~
struts-config_1_3.dtd 中的权威解释: forward Module-relative path of the servlet or other resource that will process this request, instead of the Action class specified by "type". The path WILL NOT be processed through the "forwardPattern" attribute that is configured on the "controller" element for this module. Exactly one of "forward", "include", or "type" must be specified. include Module-relative path of the servlet or other resource that will process this request, instead of the Action class specified by "type". The path WILL NOT be processed through the "forwardPattern" attribute that is configured on the "controller" element for this module. Exactly one of "forward", "include", or "type" must be specified. “instead of the Action class specified by "type".” 关键在这句,如果有 forward 或 include 属性,那 struts 会忽略 path 属性,设了也白设。
它也并没有进Action,而是直接跑到JSP里去。
我说的是Struts的<action>标签的include 和 forward属性!!!
我说的是Struts的 <action>标签的include 和 forward属性!!!
forward 是重定向
好像本来就没什么关系吧~~~~
老紫竹解释的应该是forward 和sendRedirect吧~~~~
混乱中~难道是我弄错拉~~~
will process this request, instead of the Action class
specified by "type". The path WILL NOT be processed
through the "forwardPattern" attribute that is configured
on the "controller" element for this module.
Exactly one of "forward", "include", or "type" must be
specified. include Module-relative path of the servlet or other resource that
will process this request, instead of the Action class
specified by "type". The path WILL NOT be processed
through the "forwardPattern" attribute that is configured
on the "controller" element for this module.
Exactly one of "forward", "include", or "type" must be
specified.
“instead of the Action class specified by "type".” 关键在这句,如果有 forward 或 include 属性,那 struts 会忽略 path 属性,设了也白设。
楼主【joejoe1991】截止到2008-07-02 09:41:09的历史汇总数据(不包括此帖):
发帖的总数量:221 发帖的总分数:6070
结贴的总数量:174 结贴的总分数:5224
无满意结贴数:4 无满意结贴分:130
未结的帖子数:47 未结的总分数:846
结贴的百分比:78.73 % 结分的百分比:86.06 %
无满意结贴率:2.30 % 无满意结分率:2.49 %
楼主加油