Java Mailing List Archive

http://www.junlu.com/

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

Re: Struts2 : Request found null with Multipart enc-type

Don Brown

2006-12-15

Replies:

How are you accessing form fields? Are you letting Struts 2 populate
setters in your actions or are you extracting them yourself? Also,
check that the interceptor stack you are using has the
fileuploadinterceptor.

Don

On 12/15/06, Nagraj Rao <nagraj.rao@(protected):
> Hi all
>
> I'm facing a peculiar problem with one of my forms in Struts2. Whenever I submit the form uaing enc-type as multipart/form-data for file uploads, i'm unable to get any of the form fields in my action. If i remove the file widgets and enc-type attribute, i'm able to get all the form fields properly.
>
> I've searched a lot on this but in vain. I could find a same problem in the link http://www.junlu.com/msg/309344.html. But with this guy is facing it with Struts1.x. Also no replies are found to it.
>
> Kindly let me know if i've missed anything. Please do help. Also any suggestions or pointers to the same would be welcome.
>
> regards,
> Nagraj
>

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

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