Hi

I would like to use the function FileRenamePolicy from the oreillly
classes for file uploading which uses MultipartRequest.

If I use:

MultipartRequest mr = new MultipartRequest(request,"/tmp/saved");

String myDoc = mr.getParameter("mydoc");

everything works fine.

But If I try to use:

MultipartRequest mr = new
MultipartRequest(request,"/tmp/saved",10*1024*1024, FileRenamePolicy
policy);

I get an error that MultipartRequest cannot be compiled. This may be
because FileRenamePolicy is an implemented Object which then may mean I
have to create a separate class which implements FileRenamePolicy? But
surely there must be a simpler way to do this?

Would someone be able to provide me with a code example where
FileRenamePolicy is used to rename a file, then write the file (under
ts new name) away to the destination location?

Thanks

Hugo


--
Dr Hugo Bouckaert
Systems and Programming Engineer

GeoInformatics Exploration Australia P/L
57 Havelock St
West Perth, WA 6005
PO Box 1675, West Perth 6872

Ph:       61 08 9420 7400
Fax:      61 08 9226 1299

www.geoinformex.com

------------------------------------------------------------------------
This email and any attachments may be confidential or legally
privileged. If you received this message in error or are not the
intended recipient, you should destroy the e-mail message and any
attachments or copies, and you are prohibited from retaining,
distributing, disclosing or using any information contained herein.
Please inform us of the erroneous delivery by return e-mail. Thank you
for your cooperation.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to