Since I upgraded from SiteMesh 2 to SiteMesh 3, my upload forms
stopped working.
Removing the SiteMesh filter brings them back to life, so there must
be a connection...
I'm using Struts2 FileUploadInterceptor. The interceptor is ignoring
my upload requests.
The relevant code is the following:
public String intercept(ActionInvocation invocation) throws
Exception {
ActionContext ac = invocation.getInvocationContext();
HttpServletRequest request = (HttpServletRequest)
ac.get(ServletActionContext.HTTP_REQUEST);
if (!(request instanceof MultiPartRequestWrapper)) {
if (LOG.isDebugEnabled()) {
LOG.debug(... very long debug message here ...)
}
return invocation.invoke();
}
When I click on my upload button, I get the debug message saying that
the action in bypassed.
That's because SiteMesh 3 is replacing the MultiPartRequestWrapper
with org.sitemesh.webapp.contentfilter.HttpServletRequestFilterable
Any way to fix this?
I tried with the Apache ActionContextCleanUp filter as suggested here
(
http://osdir.com/ml/java.appfuse.user/2007-02/msg00096.html) but it
breaks everything.