Hello,

I am trying to write a jsp portlet that will allow jetspeed users to upload
files and would like to know how to I access the file element of a
multi-part form submission from a jsp portlet?

On submission, I'm doing this in the jsp portlet page: 

<%
...
RunData data =
(RunData)pageContext.getAttributeJspService.RUNDATA,PageContext.REQUEST_SCOP
E);
FileItem myfile = data.getParameters().getFileItem("uploadfilename");
...
%>

I check 'data' before I try and get the fileitem but it is null. Should this
work? Is there a more appropriate way to handle file uploading in jsp
portlets?

Originally I was going to use O'Reilly's multipart form classes and was able
to upload files in a jsp page OUTSIDE of the jetspeed application directory.
When I would put the same jsp file in a portlet, the request object seemed
empty.

Any input, suggestions or direction is appreciated.

Thanks all,

~spike

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to