Hey there guys n gals,
I seem to be loosing a parameter of my request when I submit a multi-part
form.
In the page I have a,
input type=hidden name=userAction/
this is written to by a call to,
a
href=javascript:submitFormDispatch('UploadForm','performUpload')LINK/a
which calls,
If the request content type isn't application/x-www-form-urlencoded, then the
getParameter family of methods won't work. However, I'm guessing that Struts
will handle this for you if you make userAction a property on an ActionForm.
Your app logic may need to change in that case since Struts will
, Christopher [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 19, 2002 21:12
To: 'Struts Users Mailing List'
Subject: Loosing my parameter in the multipart request
Hey there guys n gals,
I seem to be loosing a parameter of my request when I submit a multi-part
form.
In the page I have a,
input type
To: Struts Users Mailing List
Subject: Re: Loosing my parameter in the multipart request
If the request content type isn't application/x-www-form-urlencoded, then
the
getParameter family of methods won't work. However, I'm guessing that Struts
will handle this for you if you make userAction
Did you have any luck with the (ugly) workaround I suggested?
-Original Message-
From: Murray, Christopher [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 19, 2002 21:41
To: 'Struts Users Mailing List'
Subject: RE: Loosing my parameter in the multipart request
It would also appear
commented it out the validate
worked fine.
-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]]
Sent: 19 November 2002 13:39
To: Struts Users Mailing List
Subject: Re: Loosing my parameter in the multipart request
If the request content type isn't application/x-www-form
what if you wanted to retrieve a request parameter for a branch in your
reset method ?
-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]]
Sent: 19 November 2002 15:55
To: Struts Users Mailing List
Subject: RE: Loosing my parameter in the multipart request
Sure
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 19, 2002 23:50
To: 'Struts Users Mailing List'
Subject: RE: Loosing my parameter in the multipart request
what if you wanted to retrieve a request parameter for a branch in your
reset method ?
-Original Message-
From: Kris Schneider
: Loosing my parameter in the multipart request
Sure, but that's just the normal flow of form processing:
reset - populate - validate
Quoting Murray, Christopher [EMAIL PROTECTED]:
It would also appear that the request parameters are only revealed once
the
ActionForm has been populated
for a branch in your
reset method ?
-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]]
Sent: 19 November 2002 15:55
To: Struts Users Mailing List
Subject: RE: Loosing my parameter in the multipart request
Sure, but that's just the normal flow of form
-
From: Kris Schneider [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 20, 2002 00:56
To: Struts Users Mailing List
Subject: RE: Loosing my parameter in the multipart request
Just to clarify, your specific situation violates #3. The content type of
your
request is multipart/form-data, right
!).
-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 20, 2002 00:56
To: Struts Users Mailing List
Subject: RE: Loosing my parameter in the multipart request
Just to clarify, your specific situation violates #3. The content type of
your
request
-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: 19 November 2002 16:52
To: Struts Users Mailing List
Subject: RE: Loosing my parameter in the multipart request
Im rather in agreement. It really should parse the request parameters before
reset is called so
On Tue, 19 Nov 2002, Murray, Christopher wrote:
Hey there guys n gals,
I seem to be loosing a parameter of my request when I submit a multi-part
form.
Yes, this is a bug. A fix is already in the works. Thanks for submitting
the bug report to Bugzilla.
--
Martin Cooper
In the page I
Thanks Andrew that spells it out nicely. Going for manual reset.
-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: 19 November 2002 13:51
To: Struts Users Mailing List
Subject: RE: Loosing my parameter in the multipart request
The multipart request is indeed
15 matches
Mail list logo