Java Mailing List Archive

http://www.junlu.com/

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

Re: [s2] file upload causing param problems

Andrew Stepanenko

2007-01-31

Replies:

Hello,

I had the same problem with s2 some time ago. At that time I was using
customized 2.0.2 SNAPSHOT.
Check out this forum post at WebWork users forum:
http://forums.opensymphony.com/thread.jspa?messageID=111939

After upgrading to 2.0.3 SVN snapshot and setting ActionContextCleanUp
filter in web.xml multipart/form-data forms started to work as
expected.

Regards,
Andrew Stepanenko

P.S. 2.0.3 because we use a customized build with some additional tags
in the tag library, so we don't follow latest struts2 releases
quickly.

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.
>
>
>
> _______________________________________________
> Join Excite! - http://www.excite.com
> The most personalized portal on the Web!
>
>
>
> ---------------------------------------------------------------------
> 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.