摘要:
<interceptor-ref name ="fileUpload"> <param name ="allowedTypes" > image/bmp,image/png,image/gif,image/jpeg </param > </interceptor-ref > <interceptor-ref name ="defaultStack" /> action里面设置拦截器会出错 阅读全文
摘要:
ActionServletActionContext.getResponse().setCharacterEncoding("UTF-8"); PrintWriter print = ServletActionContext.getResponse().getWriter();先设置编码格式再获取print对象注意不能写反页面$.ajax({ type:'POST', <---POST请求 url:strURL, <---action地址data:data, <---相当于 ? 后面的参数 (例如 id=aa&name=bb)不加可 阅读全文