程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 更多編程語言 >> 編程綜合問答 >> form multipart-關於enctype問題, multipart/form-data

form multipart-關於enctype問題, multipart/form-data

編輯:編程綜合問答
關於enctype問題, multipart/form-data

the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is null,添加完信息之後到列表頁,等一會就報這個錯,求大神解答!enctype="multipart/form-data"這句已經在form裡加上了

最佳回答:


現在的問題是,我debug之後,第一次都得到值了,而且也增加成功了,但是他還會再加載增加一次,這時候就全沒有值了,重點是為什麼要再加戴增加一次呢
org.apache.commons.fileupload.FileUploadBase$InvalidContentTypeException: the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is null
at org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.(FileUploadBase.java:908)
at org.apache.commons.fileupload.FileUploadBase.getItemIterator(FileUploadBase.java:331)
at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:351)
at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:126)
at com.icss.base.util.UploadFile.getParameter(UploadFile.java:227)
at com.icss.biz.calculateTaskManagement.controller.CalculateTaskManagementController.getMapOfRequest(CalculateTaskManagementController.java:304)
at com.icss.biz.calculateTaskManagement.controller.CalculateTaskManagementController.save(CalculateTaskManagementController.java:239)
at com.icss.biz.calculateTaskManagement.controller.CalculateTaskManagementController.performTask(CalculateTaskManagementController.java:88)
at com.icss.base.web.BaseController.doPerformTask(BaseController.java:103)
at com.icss.base.web.BaseController.doGet(BaseController.java:73)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.icss.base.web.EncodingFilter.doFilter(EncodingFilter.java:145)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.icss.base.web.SingleSignOnClient.doFilter(SingleSignOnClient.java:376)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.icss.tds.common.filter.ContextPathRequestFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.icss.tds.common.filter.EncodingFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:620)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)
然後就報地堆這個異常

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved