Thanks, Niall,

I think we have reached agreement on what is going on.  What this
means is that the MultipartRequestWrapper is not doing a thing in the
present implementation, right?  And, what this means is that there is
not available to the present implemenation a
request.getParameter("whatever") method.  Right?  What is "wrapped" in
the handler are just the values for the files, i.e. name, etc., which
is what you would expect.  This means, I think, that we can ignore
MultipartRequestWrapper because it never worked anyway and what
wrapper is implemented can be changed at will.  ///;-)   Is this too
drastic a conclusion?

I realized that the request handler got the values for the files. 
That would have to happen or there would be no way for the upload
application to work at all.  Right?

Mostly, I would like to be able to interface in various ways between
the populator, whatever that turns out to be, and the ActionForm.  Am
I being obtuse about that?

What I would like to see is the default upload application deferring
so far as is possible architectural decision until the application
itself is implicated.  I would like to see the framework avoiding
being a "servant" to the application.  This is not necessary, I think,
and undesireable.  Do you agree on that?

Thanks.

Jack


On Fri, 25 Feb 2005 09:07:49 -0000, Niall Pemberton
<[EMAIL PROTECTED]> wrote:
> OK I think I have the answer to the confusion, see inline...
> 
> ----- Original Message -----
> From: "Dakota Jack" <[EMAIL PROTECTED]>
> Sent: Friday, February 25, 2005 8:38 AM
> 
> > Thanks, Niall,
> >
> > I don't know how to approach this without some danger of raising some
> > ill feeling, but I just don't think that MultipartRequestWrapper in
> > Struts either does or can work.  You have to parse the request before
> > the wrapper.  This is what I have been talking about.  I just don't
> > get this architecture.  My tests indicate that MultipartRequestWrapper
> > does not return anything from getParameter("whatever") as it is
> > supposed to.  And, my understanding of multipart requests tells me
> > that it cannot do so.  I think there is a big mistake here or I don't
> > know what is going on.
> 
> You're right in what you say and it does happen that way - after the parse,
> but its actually in the Struts implementation of the MultipartHandler.
> 
> The default multipart handler for Struts is the
> CommonMultipartRequestHandler - in it's addTextParameter() method it checks
> to see if the Request is a MultipartRequestWrapper. If it is it adds the
> parameter into the Request. Thats how the parameters get into the "wrapped"
> request.
> 
> > What I do is create a multipart request handler which utilizes the
> > parsing from the commons DiskUploadUpload parseRequest(...) method.
> > Then I use the handler to populate what I call UploadMultipartRequest.
> 
> Since your using Commons fileupload directly, then thats why you're not
> seeing this behaviour.
> 
> Niall
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
"You can lead a horse to water but you cannot make it float on its back."
~Dakota Jack~

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

Reply via email to