我就是和那个文档中显示的目录结构一样的,下面是提示的错误,而且我用同样的方法自己写了个bean就没有问题,会不会是SmartUpload类有问题啊,实在是不知道该怎么办:(. Parsing of JSP File '/jspsmartupload/jsp/sample1.jsp' failed: /jspsmartupload/jsp/sample1.jsp(3): class 'com.jspsmart.upload.SmartUpload' could not be loaded probably occurred due to an error in /jspsmartupload/jsp/sample1.jsp line 3: <jsp:useBean id="mySmartUpload" scope="page" class="com.jspsmart.upload.SmartUpload" />
<Context path="/jspsmartupload" docBase="webapps/jspsmartupload" defaultSessionTimeOut="30" isWARExpanded="true" isWARValidated="false" isInvokerEnabled="true" isWorkDirPersistent="false"> </Context> 在你的server.xml加上这些 然后 1. Stop your webserver2. Copy files from /Temp/jspsmartupload/*.htm into a virtual path of your web site.3. Create the directory /upload declared as a virtual path of your web site.4. Copy all jsp files of the /Temp/jspsmartupload/jsp directory into your usually JSPs' folder.5. The package is in the /Temp/jspsmartupload/Web-inf/classes folder. Copy this directory into your usually servlets folder.6. Start your web server.
peanz(似水流年)你发给我的和我的是一样的,很谢谢你,我现在改到weblogic上发布,但是发布不上,提示: Could not load web application from 'd:\test\upload' failed application upload on myserver;真想马上结贴,就可以给大家分了:(
记得\WEB-INF是你jsp所在的那个目录下的
最好把你的目录列出来 我觉得可能你放错目录了
你下载完 解压后 应该有个文档 看看你就知道怎么配置了!
我也是这样用的
Parsing of JSP File '/jspsmartupload/jsp/sample1.jsp' failed:
/jspsmartupload/jsp/sample1.jsp(3): class 'com.jspsmart.upload.SmartUpload' could not be loaded
probably occurred due to an error in /jspsmartupload/jsp/sample1.jsp line 3:
<jsp:useBean id="mySmartUpload" scope="page" class="com.jspsmart.upload.SmartUpload" />
docBase="webapps/jspsmartupload"
defaultSessionTimeOut="30"
isWARExpanded="true"
isWARValidated="false"
isInvokerEnabled="true"
isWorkDirPersistent="false">
</Context>
在你的server.xml加上这些
然后
1. Stop your webserver2. Copy files from /Temp/jspsmartupload/*.htm into a virtual path of your web site.3. Create the directory /upload declared as a virtual path of your web site.4. Copy all jsp files of the /Temp/jspsmartupload/jsp directory into your usually JSPs' folder.5. The package is in the /Temp/jspsmartupload/Web-inf/classes folder.
Copy this directory into your usually servlets folder.6. Start your web server.
Could not load web application from 'd:\test\upload'
failed application upload on myserver;真想马上结贴,就可以给大家分了:(
看看它怎么说的
因为我照着做都可以了 实在是不清楚你到底怎么会不行!