Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: [s2] file upload causing param problems

Nagraj Rao

2007-01-30

Replies:

Even i'm not sure what has been causing this. But probably you can just
check your lib to contain commons-lang-1.1.1.jar instead of
commons-lang.jar(remove this in case it exists).

----- Original Message -----
From: "Dariusz Wojtas" <dwojtas@(protected)>
To: "Struts Users Mailing List" <user@(protected)>;
<tomfrost@(protected)>
Sent: Wednesday, January 31, 2007 1:11 AM
Subject: Re: [s2] file upload causing param problems


>I had similar problems with fileupload last weekend.
> At first I thought that it could be caused by a filter that I have in
> front of my app - prints the URI and all params to the console - does
> the processing before analising multipart data.
> But I modified the filter to get/print that info after processing the
> action.
> I even disabled the filter - it did not fix it.
> I had no exceptions.
> The params were just not set.
>
> Now it seems to work but I am really not sure what exactly fixed the
> issue.
> I am using the default config, commons-upload with S2.0.4.
>
> Dariusz Wojtas
>
> On 1/30/07, bob <tomfrost@(protected):
>>
>>
>>
>>
>> Hi. I am having some strange problems when using the file upload
>> interceptor. When I use the file upload, I experience an extremely
>> erratic behaviour where sometimes my request params get set on my action
>> and sometimes they do not. All params from my form are either there or
>> not there; this means that when they make it through to my action, its
>> all of them -- both the non file upload related ones as well as the File
>> itself.
>>
>> Anyone else seeing this? I removed the file upload part and the transfer
>> of params works perfectly, so its something there.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.