public void doUploaddhl(RunData rundata, Context context) throws Exception { try { FileItem fi = rundata.getParameters().getFileItem("filename"); OrderManager om = new OrderManager(); om.importTrackAndTrace(fi.getStream()); } catch(Exception e) { logger.error("tt-import-failure: " + e); } }
the fileitem returns a stream, which you can handle. filename is the name of the html-form-element -----Ursprüngliche Nachricht----- Von: Carlos Torres [mailto:[EMAIL PROTECTED] Gesendet: Montag, 31. Januar 2005 23:07 An: Jetspeed Users List Betreff: Re: File Upload Can you explain how you did it? Which classes you used, if any change was necessary. Thanks. ----- Original Message ----- From: <[EMAIL PROTECTED]> To: "'Jetspeed Users List'" <jetspeed-user@jakarta.apache.org> Sent: Monday, January 31, 2005 6:02 PM Subject: AW: File Upload Yeah, I did it ;) -----Ursprüngliche Nachricht----- Von: Carlos Torres [mailto:[EMAIL PROTECTED] Gesendet: Montag, 31. Januar 2005 22:59 An: Apache JetSpeed User; Apache JetSpeed Dev Betreff: File Upload Hello all, Anybody made a page(portlet) with file upload using JetSpeed 1.5 ? Please help me. Thanks. Carlos Torres --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]