读书人

Struts2.08 tablePanel 标签有关问题

发布时间: 2012-10-30 16:13:36 作者: rapoo

Struts2.08 tablePanel 标签问题
Struts2.08 tablePanel 标签问题,在每次刷新时重复执行 action
struts.xml 里边是这样写的:

<action name="showLoginUsers" method="showLoginUsers"><result name="success">usersinfo_logininfo_s.jsp</result></action>

页面是这样定义的:
<s:tabbedPanel id="test">   <s:div id="div1" label="view" theme="ajax" href="showLoginUsers.action" ></s:div></s:tabbedPanel>


在每次刷页面时都要重复执行两次 showLoginUsrs.aciton,是什么原因.请高手解决一下,谢谢
标记后
刷新页面后 会执行 2 次 action 是什么原因?
   <s:tabbedPanel id="test">       <s:div id="div1" label="view" theme="ajax" href="showLoginUsers.action" ></s:div>    </s:tabbedPanel>  

是单独执行 showLoginUsers.action,是正常的,执行一次

项目比较急,有遇到的请帮忙解决下,万分感谢
<s:tabbedPanel id="test"> <s:div id="div_1" label="view" theme="ajax"> <s:div id="div1" theme="ajax" href="showLoginUsers.action"/> </s:div></s:tabbedPanel> 3 楼 pxysea 2007-07-13 我已经决定放弃研究 struts 自带的 ajax 功能了,他绑定的 dojo 还是有很多问题,改的头痛!!

读书人网 >软件架构设计

热点推荐