[opencms-dev] How to use uploadfile function

Mohit Raj mohit.raj at amsoft.net
Mon Jan 3 10:30:24 CET 2005


Hi,

How can I use the uploadFile method in com.opencms.core.CmsShellCommands in
a jsp. Which all packages do I need to import. So far I have tried the
following code which doesnt work.

<%@ page import="com.opencms.core.*, java.util.*, java.lang.Object.*" %>
<%@ page session="false" %>

<%
	CmsObject cms;
	com.opencms.core.CmsShellCommands cms123 = new CmsShellCommands(openCms,
cms);
%>

It gives many errors which says com.opencms.core.* does not exist. Where can
I get this.

Thanks,
Mohit





More information about the opencms-dev mailing list