Re: Looping with paramValues

2004-09-14 Thread Martin Cooper
cess these in Struts, the ActionForm, if > anyone knows if this is possible. Yes, it's possible. Just make your action form properties string arrays instead of strings, and it will "just work". ;-) -- Martin Cooper > > Thanks, > > Doug > > > > -

Re: Looping with paramValues

2004-09-14 Thread Helios Alonso
m the request, does the following work? I don't use el enough to remember all the nuances. Doug -Original Message- From: Martin Cooper [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 14, 2004 4:02 PM To: Kris Schneider Cc: Tag Libraries Users List Subject: Re: Looping with paramVal

RE: Looping with paramValues

2004-09-14 Thread Ross, Douglas
}} %> I would like to know how to access these in Struts, the ActionForm, if anyone knows if this is possible. Thanks, Doug -Original Message- From: Nic Werner [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 14, 2004 5:08 PM To: Tag Libraries Users List Subject: Re: Looping with pa

Re: Looping with paramValues

2004-09-14 Thread Nic Werner
nces. Doug -Original Message- From: Martin Cooper [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 14, 2004 4:02 PM To: Kris Schneider Cc: Tag Libraries Users List Subject: Re: Looping with paramValues On Tue, 14 Sep 2004 15:18:24 -0400, Kris Schneider <[EMAIL PROTECTED]> wrote: > I was

RE: Looping with paramValues

2004-09-14 Thread Helios Alonso
following work? I don't use el enough to remember all the nuances. Doug -Original Message- From: Martin Cooper [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 14, 2004 4:02 PM To: Kris Schneider Cc: Tag Libraries Users List Subject: Re: Looping with paramValues On Tue, 14 Sep 2004 15:

RE: Looping with paramValues

2004-09-14 Thread Ross, Douglas
ssage- From: Martin Cooper [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 14, 2004 4:02 PM To: Kris Schneider Cc: Tag Libraries Users List Subject: Re: Looping with paramValues On Tue, 14 Sep 2004 15:18:24 -0400, Kris Schneider <[EMAIL PROTECTED]> wrote: > I was thinking more along th

Re: Looping with paramValues

2004-09-14 Thread Martin Cooper
On Tue, 14 Sep 2004 15:18:24 -0400, Kris Schneider <[EMAIL PROTECTED]> wrote: > I was thinking more along the lines of the HTTP spec not guaranteeing the order. > So that if you made the same request with parameters "foo" and "bar", in some > cases "foo" might be first and in other cases it might b

Re: Looping with paramValues

2004-09-14 Thread Helios Alonso
There is another factor: the submitting form. If the form change the order of the inputs (or includes or excludes something) the indexed access is lost. It is, if you assume ordering on the parameters, you are adding a lot of coupling with the referrer. At 11:57 14/09/2004 -0700, you wrote:

Re: Looping with paramValues

2004-09-14 Thread Kris Schneider
I was thinking more along the lines of the HTTP spec not guaranteeing the order. So that if you made the same request with parameters "foo" and "bar", in some cases "foo" might be first and in other cases it might be "bar". Quoting Martin Cooper <[EMAIL PROTECTED]>: > On Tue, 14 Sep 2004 13:31:22

Re: Looping with paramValues

2004-09-14 Thread Martin Cooper
On Tue, 14 Sep 2004 13:31:22 -0400, Kris Schneider <[EMAIL PROTECTED]> wrote: > Well, even if you could do it cleanly, there's no guarantee on the ordering of > request parameters. Although the Servlet spec doesn't state it explicitly, it does actually specify that the order of values for a given

Re: Looping with paramValues

2004-09-14 Thread Kris Schneider
Well, even if you could do it cleanly, there's no guarantee on the ordering of request parameters. Are you really just checking to see if a particular parameter has been passed? If so, you should be able to do that with just: ... Quoting Nic Werner <[EMAIL PROTECTED]>: > Thanks everyone for

Re: Looping with paramValues

2004-09-14 Thread Nic Werner
Thanks everyone for the help. I ended up taking your examples, and just 'on the side' iterating through the paramValues until I found the matching one, and then setting a temp flag. Its unfortunate that I couldn't just use an index to access the nth param and its nth value. - Nic. Helios Alonso

RE: Looping with paramValues

2004-09-13 Thread Helios Alonso
Oops. Exactly. At 11:56 13/09/2004 -0400, you wrote: Helios, Small correction (I think), did you mean ... > > > > Note: I switched var and items values. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

RE: Looping with paramValues

2004-09-13 Thread Ross, Douglas
Helios, Small correction (I think), did you mean ... > > > > Note: I switched var and items values. -Original Message- From: Helios Alonso [mailto:[EMAIL PROTECTED] Sent: Monday, September 13, 2004 11:28 AM To: Tag Libraries Users List Subject: Re: Looping with para

Re: Looping with paramValues

2004-09-13 Thread Helios Alonso
The items in the params collection are Entries (java.util.Map.Entry I think). So you can access two properties at each entry: key and value. You can do (changing paramValues to entry for clarity): At 10:50 13/09/2004 +0100, you wrote: Closest I've got in my extant code is something lik

Re: Looping with paramValues

2004-09-13 Thread Malcolm Cowe
Closest I've got in my extant code is something like this: Regards, Malcolm. Nic Werner wrote: Hi, Is there a '.key' accessor for paramValues? Basically I only want to access the variables that match a certain index and do comparison work with them I'm familiar with accessing

Re: Looping with paramValues

2004-09-10 Thread Martin Cooper
I'm not totally sure what you're asking either, but you should note that the only difference between 'param' and 'paramValues' is that the values in 'param' are strings while the values in 'paramValues' are arrays of strings. In all other respects, they are the same. -- Martin Cooper On Fri, 10

Re: Looping with paramValues

2004-09-10 Thread Kris Schneider
Sorry, Nic, I'm not exactly clear on what you're asking. Specifically, I'm confused by: I only want to access the variables that match a certain index and do comparison work with them It looks like you already understand the structure of ${param} and ${paramValues}... Quoting Nic Werner <[EM

Looping with paramValues

2004-09-10 Thread Nic Werner
Hi, Is there a '.key' accessor for paramValues? Basically I only want to access the variables that match a certain index and do comparison work with them I'm familiar with accessing data using paramValues.var_name[index], and I'm familiar with looping through params with only one va