ITeye博客

action的小复用。

east_java · 2009-04-27 23:30 · struts · 企业架构 · Markdown

一直在考虑action的复用问题。。

一个页面对应一个action,这种做法,我很是不喜欢。。。

页面中使用jsp:include包含一个action,又会出错。。

终于看到了一个方法:

<bean:include id="t" page="/goods.do?operate=toOnSaleGoodsList">
<bean:write name="t" filter="false">

但是又奇怪的出现乱码。 下面有个解决方法: http://topic.csdn.net/t/20061011/12/5074664.html

listCatalog.do forward的结果页面的字符集改成 gb2312或gbk,其它的仍为utf-8就行了

又很是不解啊。

评论(1)

  1. #1 楼 · zhaoshuo5550 · 2009-04-28 16:31

    org.apache.struts.actions.DispatchAction;

    请好好看看这个类怎么使用,谢谢

评论功能维护中,当前仅展示历史评论。