Martin Cooper <martinc <at> apache.org> writes:

> 
> > -----Original Message-----
> > From: news [mailto:news <at> sea.gmane.org]On Behalf Of Scott Nesbitt
> > Sent: Thursday, April 29, 2004 1:32 PM
> > To: commons-user <at> jakarta.apache.org
> > Subject: Re: fileUpload redirect problem
> >
> >
> > Martin Cooper <martinc <at> apache.org> writes:
> >
> > >
> > > "Scott Nesbitt" <scottnesbitt <at> yahoo.com> wrote in message
> > > news:20040421134238.65564.qmail <at> web21004.mail.yahoo.com...
> > > >
> > > > I am just trying to upload a file using Struts and
> > > > redirect at the end of the upload.  I asked the same
> > > > question in the struts users group but got no
> > > > suggestions.
> > >
> > > Odd. I posted a reply on the Struts list, but it seems it never
> > showed up.
> > >
> > > Anyway, the point to note here is that it's not legal, per the
> > HTTP spec, to
> > > redirect a POST request, so that is probably what's tripping you up.
> >
> >
> > I am not _trying_ to redirect an HTTP post request,
> 
> Huh? You used a subject line of "fileUpload redirect problem" and stated in
> a previous post (quoted above) "... and redirect at the end of the upload".
> Now you're saying you're not trying to redirect. Excuse me for being
> confused...

Sorry, I did not explain it well.

I am running the exact, unmodified Struts 1.1 file upload example code.  Here is
the revision info:  UploadAction.java,v 1.8 2003/02/28 02:18:23 dgraham Exp $

At the end of this example code, it does this:

            //return a forward to display.jsp
            return mapping.findForward("display");

This is where it fails in the explode version, and succeeds in the war file.  I
am probably introducing a bug when I do the minor tweaks (to config files, not
java or jsp code) to integrate it into our setup, but the problem is quite
elusive.  I just do not understand why it is an illegal redirect in one
situation and not the other.

Thanks again,

Scott


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

Reply via email to