下载Struts2 jQuery 插件并像平常使用 Struts2 那样进行操作。
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<html>
<head>
<sj:head/>
</head>
<body>
<s:form id="form" action="AjaxTest">
<s:file name="myFile" ... />
<sj:submit value="Submit Form" targets="myAjaxTarget"/>
</s:form>
<div id="myAjaxTarget">
</div>
</body>
</html>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)