I have now done some more studies by making my own fileUploadInterceptor class. It is complety the same as org.apache.struts2.interceptor.FileUploadInterceptor, except that I write in the log the class name of the HttpServletRequest I get in the intercept method.

If I bypass apache as frontend (that is calling jboss on port 8080) I get the org.apache.st ruts2.dispatcher.multipart.MultiPartRequestWrapper class in the inetercept method. And everything works fine.

If I use apache as frontend (Using mod_jk 1.2.x with JBoss/Tomcat and Apache2, link http://www.jboss.org/wiki/Wiki.jsp?page=UsingMod_jk1.2WithJBoss) I get the org.apache.ca talina.connector.RequestFacade Class in the intercept method.

Now the question is why do I not get the MultiPartRequestWrapper class ?

Best regards
Torben Frøberg


Dave Newton wrote:
Did either of you try specifying the context cleanup
filter?

<filter>
  <filter-name>contextCleanup</filter-name>
  <filter-class>
    org.apache.struts2.dispatcher.ActionContextCleanUp
  </filter-class>
</filter>

and put it first in the filter mapping.

I have yet to have any issues w/ file upload since
including that and I still think I vaguely recall a
thread about this a long time ago but can no longer
find any references to it, so I could be way off-base.




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

Reply via email to