Your request isn't multipart. You need to make sure your page is sending a multipart request. Look at the examples.
----- Original Message -----
Sent: Tuesday, February 11, 2003 9:34 AM
Subject: [OS-webwork] SV: [OS-webwork] SV: [OS-webwork] File upload with WW/velocity?

Hi,
I tracked down the problem to the webwork code:
In webwork.action.ServletActionContext, the request is an
org.apache.coyote.tomcat4.CoyoteResponseFacade instead of the
MultiPartRequest, which is checked for:


 // add wrapRequest code here and throw IOException!!!
   public static MultiPartRequestWrapper getMultiPartRequest()
   {
     HttpServletRequest request = (HttpServletRequest)
ActionContext.getContext().get(REQUEST);
      if (request instanceof MultiPartRequestWrapper) {
         return (MultiPartRequestWrapper) request;
      } else
         return null;
   }

Thus, null is returned.



Is there a way to change that behaviour? It seems that Tomcat is doing that,
or is WW not wrapping the request?

Thanks

/peter
###########################################

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.F-Secure.com/

Reply via email to