JSP上传文件
JSP上传文件时 要给表单加上enctype = multipart/form-data,并且method要为post
表单参数要在JS里重新设置<% String accountId = request.getParameter("acid"); if(StringUtils.isBlank(accountId))accountId = "ac_50001"; if(StringUtils.isNotBlank(accountId)){ JSONObject account= IsoneERPEngine.accountService.getAccount(accountId); if(account == null){ out.print("<font color=red>找不到对应的账套</font>"); return; } String message = SkuLedgerImport.importDoc(request,application); out.print(message);}%>