2007-08-27
拦截机可否放置于2个result之间?
关键字: 配置 webwork 拦截
答案是“不可以”,有可能会发生问题,如:
这是我实际开发中的一个配置,注意,拦截机写到了result的中间,而在运行中,返回的标记明明是index,但却location到了editPrettyProduct.htm;把<interceptor-ref name="cookie"/>删除掉或写到后面,一切恢复正常!所以大家严格按规范写比较好!
<action name="TPrettyProductGetInfo" class="dealPrettyProduct" method="getInfo">
<result name="success" type="velocity">
<param name="location">/product/editPrettyProduct.htm</param>
</result>
<result name="index" type="velocity">
<param name="location">/product/prettyProductInfo.htm</param>
</result>
<interceptor-ref name="cookie"/>
<result name="back" type="velocity">
<param name="location">/product/addPrettyProductBack.htm</param>
</result>
<result name="error" type="dispatcher">/manage/err.jsp</result>
</action>
这是我实际开发中的一个配置,注意,拦截机写到了result的中间,而在运行中,返回的标记明明是index,但却location到了editPrettyProduct.htm;把<interceptor-ref name="cookie"/>删除掉或写到后面,一切恢复正常!所以大家严格按规范写比较好!
- 10:01
- 浏览 (235)
- 评论 (0)
- 分类: Webwork/Struts2
- 相关推荐
发表评论
- 浏览: 28128 次
- 性别:

- 来自: 河北

- 详细资料
搜索本博客
最近加入圈子
最新评论
-
深度技术GhostXP专业版V9 ...
还是V8.1版本成熟,速度很快,不错,可以一试!
-- by DavyLee -
2008年7月1日,盖茨离职 ...
不知道你的X年经验是几年,不过你确实缺少一些基础经验...
-- by e-ant -
2008年7月1日,盖茨离职 ...
引用这个是不是因为workspace中有eclipse的配置文件,删除那个.me ...
-- by DavyLee -
2008年7月1日,盖茨离职 ...
强阿我从来不用MyEclipse
-- by 王者之剑 -
2008年7月1日,盖茨离职 ...
引用第五:只要先用myEclipse建立了工作区,即使你把myEclipse卸掉 ...
-- by dogstar






评论排行榜