I ran into the same problem with inconsistent behavior when uploading
files. Sometimes i get a RequestFacade, and sometimes I get the right
MultiPartRequestWrapper.
I dug into the struts source code a little and I think I found the
culprit.
in org.apache.struts2.dispatcher.FilterDispatche
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 fronte
--- nordland <[EMAIL PROTECTED]> wrote:
> I had the same problem too. The invocation of the
> ActionContextCleanUp-filter was the right choice.
> Fileupload works now without any errors.
That's great!
I or someone else will add something to the wiki page,
although I sure wish I could find the th
; > import org.apache.struts2.ServletActionContext;
>> > import
>> org.apache.struts2.interceptor.ServletRequestAware;
>> >
>> > import sun.util.logging.resources.logging;
>> >
>> > import com.opensymphony.xwork2.ActionSupport;
>> > import com.shoutloud.model.Item;
>> > import co
Thanks for the tip. But it does not work in my case.
best regards
Torben Frøberg
Dave Newton wrote:
Did either of you try specifying the context cleanup
filter?
contextCleanup
org.apache.struts2.dispatcher.ActionContextCleanUp
and put it first in the filter mapping.
I have yet
Did either of you try specifying the context cleanup
filter?
contextCleanup
org.apache.struts2.dispatcher.ActionContextCleanUp
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
I cannot help you. But I have exactly the same problem. Sometimes it
seems that, the execute method is called before the HTTP client has
finished uploading the file. This results in a null value for the File
object upload.
But the file is uploaded, the problem is just, he the execute methd is
Hi all,
I am using struts 2.0.6 and encountered a submit problem.
I have a form with enctype="multipart/form-data" property. there're
other text fields beside . when I submit, at most time it
works fine, but I found that occasionally all fields are null. I have
replaced commons-fileupload, commo
8 matches
Mail list logo