[opencms-dev] Uploading a Files from RFS to VFS
Madhu Yadav
gmadhuyadav at gmail.com
Thu Oct 7 06:54:28 CEST 2010
This is My code
<%@ page import="org.opencms.workplace.explorer.*" %>
<%@ page import="org.opencms.jsp.CmsJspActionElement" %>
<%@ page import="javax.servlet.http.*" %>
<%
CmsJspActionElement cms = new CmsJspActionElement(pageContext, request,
response);
CmsNewResourceUpload upload = new CmsNewResourceUpload(cms);
upload.setParamUploadFile ("c://img.jpg") ;
System.out.println("UpLoad File"+ upload.getParamUploadFile());
upload.setParamUploadFolder ("/sites/default/p1/");
upload.setParamNewResourceName ("titi.jpg") ;
upload.setParamUploadError ("Error while Uploading") ;
upload.setParamUnzipFile ("false") ;
String str=upload.getParamUploadFolder() ;
System.out.println(str);
upload.actionUpload () ;
%>
But i am getting a NullpointerException at
upload.actionUpload();
Please i Need help.............
--
View this message in context: http://old.nabble.com/Uploading-a-Files-from-RFS-to-VFS-tp29896309p29896309.html
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.
More information about the opencms-dev
mailing list