strtus1中bean标签能实现不刷新页面的修改吗?

Svperma 2014-09-18 10:25:42
前台页面代码,bean中的值是用request中的对象获取属性值,只是在页面刷新的时候会载入,现在想实现页面不刷新的动态修改bean中的值可以吗?
<tr>
<td class="left">联系人地址</td>
<td class="right"><bean:write name="ggUserDto" property="address" /></td>
<td class="left">固定电话</td>
<td class="right"><bean:write name="ggUserDto" property="phone" /></td>
</tr>
...全文
420 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
Svperma 2014-09-19
  • 打赏
  • 举报
回复
引用 1 楼 jt61016 的回复:
不知道struts1里面可不可以用AJAX,异步刷新嘛,应该有的
XML/HTML code ? 1 2 3 4 5 6 7 8 <table cellpadding="1" cellspacing="1" class="common" id="enterpriseManger"> <tr> <td class="left">联系人地址</td> <td class="right"><bean:write name="ggUserDto" property="address" /></td> <td class="left">固定电话</td> <td class="right"><bean:write name="ggUserDto" property="phone" /></td> </tr> </table 我想刷新这个带id的table可以吗?
Svperma 2014-09-19
  • 打赏
  • 举报
回复

<table cellpadding="1" cellspacing="1" class="common" id="enterpriseManger">
    <tr>
        <td class="left">联系人地址</td>
        <td class="right"><bean:write name="ggUserDto" property="address" /></td>
        <td class="left">固定电话</td>
        <td class="right"><bean:write name="ggUserDto" property="phone" /></td>
     </tr> 
</table
我想刷新这个带id的table可以吗?
Mergades 2014-09-19
  • 打赏
  • 举报
回复
ajax,不管是什么标签,编译完了都是html,你可以在onload里面,更改对应html td的值
  • 打赏
  • 举报
回复
不知道struts1里面可不可以用AJAX,异步刷新嘛,应该有的

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧