You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Struts Newsgroup (@Basebeans.com)" <st...@basebeans.com> on 2002/04/02 04:40:01 UTC

multipart request error. Problem forwarding to 2nd Action.

Subject: multipart request error. Problem forwarding to 2nd Action.
From: "Nicolas Paris�" <ni...@globetrotter.net>
 ===

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: multipart request error. Problem forwarding to 2nd Action.

Posted by Slava_L <lo...@esstu.ru>.
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" <@B...@basebeans.com>
To: <st...@jakarta.apache.org>
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И" <ni...@globetrotter.net>
>  ===
>
> 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:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>