Try to setup in ur struts-config.xml  for this action (i mean action, which
is multiparted) attribut "redirect" = true, or instead of
findForward("success") do such thing like request.redirect("page")

----- Original Message -----
From: "Struts Newsgroup" <@[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 02, 2002 11:40 AM
Subject: multipart request error. Problem forwarding to 2nd Action.


> Subject: multipart request error. Problem forwarding to 2nd Action.
> From: "Nicolas Parisé" <[EMAIL PROTECTED]>
>  ===
>
> Hi folks!
>
>
> I got the same problems with 2 actions with one using a a multipart
request.
> Anybody can help me?
>
> Thank you
>
>
> Nicolas
>
>
>
> ____________________________________
> Hi
>
> I am having some difficulties with a multipart request.  The sequence
> of actions I have is
>
> 1.  Using an Action(Action1) I populate some beans and display a page.
This
>      page
>     has the multipart/form-data form on it...
>
> <html:form action="/testUpload" focus="theFile"
> enctype="multipart/form-data"
> method="post" >
> 2.  The user fills out the form and hits the submit button.  The user gets
>     sent to Action1 for processing.  Action1 then returns success which
>     maps to Action2.
>
> Now the problem is that when Action1 forwards to Action2 I always get the
> exception
>
> 2002-03-12 11:11:06 ApplicationDispatcher[/testApp] Servlet.service() for
> servlet
> action threw exception
> javax.servlet.ServletException: MultipartIterator: no multipart request
data
> sent
>  at
>
org.apache.struts.upload.MultipartIterator.parseRequest(MultipartIterator.ja
> va:342)
>  at
>
org.apache.struts.upload.MultipartIterator.<init>(MultipartIterator.java:342
> ).
>
> Can someone please explain to me how I can forward to Action2 from Action1
> without getting this exception.
>
> Thanks for your help.
>
> Cheers
>
> Tony
>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to