如何动态更新数据库数据到jsp页面
1、在网页中选中一行之后点击修改:
2、会跳到这个页面:

问题:修改完数据之后,点击保存,数据便存到数据库里,之后便又跳到 1、 所示的页面,我想让页面同时更新数据,如何才能做到?我后台没有用框架,前台框架是DWZ。
我之前是重新查一下数据库,然后将数据再次取出,更新内置对象application的属性值,但是控制台报错,dwz也报错。
请问大家还有什么方法?谢谢大家! 数据库 JSP DWZ
[解决办法]
刚看了下他的js 中关闭当前窗口,前一个窗口会冲洗load 的。
_closeTab: function(index, openTabid) {
this._getTabs().eq(index).remove();
this._getPanels().eq(index).trigger(DWZ.eventType.pageClear).remove();
this._getMoreLi().eq(index).remove();
if (this._currentIndex >= index)
this._currentIndex--;
if (openTabid) {
var openIndex = this._indexTabId(openTabid);
if (openIndex > 0)
this._currentIndex = openIndex;
}
this._init();
this._scrollCurrent();
this._reload(this._getTabs().eq(this._currentIndex));
},