struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pedone, Tim" <Tim_Ped...@intuit.com>
Subject RE: Adding/Modifying parameters in the Request object
Date Fri, 25 Jan 2002 17:58:05 GMT
Here is a more concrete example:

Map params = request.getParameterMap();

Foo myData = new Foo(); // assume this is your large data

params.put("BigMoFoObject", myData);

// now myData is a parameter of the HttpServletRequest object

// forward the request to your new Action

Tim

-----Original Message-----
From: Elena Yee [mailto:elena.yee@peregrine.com]
Sent: Friday, January 25, 2002 9:38 AM
To: 'Struts Users Mailing List'
Subject: RE: Adding/Modifying parameters in the Request object


I'm also running into a similiar problem, but need to add parameters with
large chunks of data in a redirect call.  Is there another way to do this
besides adding it in the url (which doesn't work because of the data size) ?

Thanks!

-----Original Message-----
From: Pedone, Tim [mailto:Tim_Pedone@intuit.com]
Sent: Friday, January 25, 2002 9:32 AM
To: 'Struts Users Mailing List'
Subject: RE: Adding/Modifying parameters in the Request object


You can call request.getParameterMap() which returns a Map object that you
can manipulate.

Tim

-----Original Message-----
From: Freek Segers [mailto:freek.segers@contingo.nl]
Sent: Thursday, January 24, 2002 11:34 PM
To: Struts Users Mailing List
Subject: Adding/Modifying parameters in the Request object


Hi,

Does anyone know how you can add a parameter to the Request object in an
Action?

I can find no interface for it in HTTPServletRequest or ServletRequest.

What I want to do is forward a request in one Action to another Action (by
returning an ActionForward that's configured in struts-config), but add a
new parameter to the request.

Thanks,

Freek


--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message