|
Home > Archive > WebSphere Portal Server > January 2004 > Re: File upload portlet
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: File upload portlet
|
|
| Ronnie Hale 2004-01-19, 2:55 pm |
| We were able to get around this without using the Action Event by doing the
request via RunData. We do runData.getRequest() rather than going directly to
PortletRequest. This eliminated our getting an IllegalStateException exception.
Vivek Agarwal wrote:
[QUOTE][color=darkred]
> If you are trying to use the O'Reilly MultipartRequest class in WPS v4.1, it
> will not work, because of a WPS bug where PortletRequest.getContentLength
> always returns '-1'. I modified the O'Reilly package to ignore the content
> length for now (intend to use the HttpRequest's content length at some
> point) and now it does work. If you like, I can send you the modified
> cos.jar and hte source ...
>
> You are probably getting the IllegalStateException because you are trying to
> process the multipart request in a jsp; if u process it in an action, then
> it should work. Look up the javadocs on ServletRequest.getReader() for more
> information on why you get the exception ...
>
> "Alvin" <alvingovindan@intekom.co.za> wrote in message
> news:3DBFD073.9050409@intekom.co.za...
| |
| Viet Jav 2004-01-19, 2:55 pm |
| Hi Ronnie,
I am newcomer in Portlet.
Can you explain detailly? If it is possible, you show your code how to them
done.
When user click on UPLOAD button --> I process upload file in
performedAction(event) methods.
and initiate RunData object in performedAction() methods
RunData runData = new RunData(event.getRequest(), null,
getServletContext());
Is it right?
And upload file is not work.
Thanks.
Jav.
"Ronnie Hale" <Ronnie.Hale@rich.frb.org> wrote in message
news:3EDF7EB7.E88CA626@rich.frb.org...quote:
> We were able to get around this without using the Action Event by doing
thequote:
> request via RunData. We do runData.getRequest() rather than going
directly toquote:
> PortletRequest. This eliminated our getting an IllegalStateException
exception.quote:
>
> Vivek Agarwal wrote:
>
v4.1, it[QUOTE][color=darkred]
PortletRequest.getContentLength[QUOTE][color=darkred]
content[QUOTE][color=darkred]
trying to[QUOTE][color=darkred]
then[QUOTE][color=darkred]
more[QUOTE][color=darkred]
servlet[QUOTE][color=darkred]
ideas.[QUOTE][color=darkred]
>
|
|
|
|
|