首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

帮忙看看!该怎么解决

2012-01-19 
帮忙看看!org.apache.jasper.JasperException:ExceptioninJSP:/checke/start.jsp:2825:}26:Stringextsmar

帮忙看看!
org.apache.jasper.JasperException:   Exception   in   JSP:   /checke/start.jsp:28

25:   }
26:       String   ext   =   smart.getFiles().getFile(0).getFileExt();
27:   String   fileName   =smart.getRequest().getParameter( "name ");
28:   smart.getFiles().getFile(0).saveAs(url+ "/ "+fileName+ ". "+ext);
29:         %>


Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:467)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


root   cause  

java.lang.IllegalArgumentException:   This   path   does   not   exist   (1135).
com.jspsmart.upload.SmartUpload.getPhysicalPath(SmartUpload.java:1089)
com.jspsmart.upload.File.saveAs(File.java:91)
com.jspsmart.upload.File.saveAs(File.java:65)
org.apache.jsp.checke.start_jsp._jspService(start_jsp.java:81)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)



[解决办法]
你保存的路径不存在, "url+ "/ "+fileName+ ". "+ext "换成 "url+ "// "+fileName+ ". "+ext "试试看,并确保url代表的目录存在。

热点排行