Struts2 dojo Anchor tag does not work?

孤街醉人 提交于 2019-12-11 22:14:51

问题


Tag <sx:head /> is present on the page. I try to update content of div:

<div id="div1">
...
</div>

<s:url id="ajaxData" value="/ajaxData.action" />
<sx:a id="link1" href="%{ajaxData}" targets="div1">
update data
</sx:a>

action

public String execute() {
    ...
    return NONE;
}

xml

<action name="ajaxData" class="com.data.action.AjaxDataAction">
    <result name="none">/page.jsp</result>
</action>

But when I press update data the browser tab shows animation, it means that whole page updates? It reloads the whole page, not only div, I want to reload only div partially.

来源:https://stackoverflow.com/questions/25635385/struts2-dojo-anchor-tag-does-not-work

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!