下载
Struts2 jQuery Plugin并像你一样用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>