o find out whether the map has a certain key in it, without having
to loop the whole way. I'm trying to use a logic:equals tag
help!!!
-Original Message-
From: Steve A Drake [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 05, 2001 3:17 AM
To: [EMAIL PROTECTED]
Subject: RE: Any Hashma
On Mon, 4 Jun 2001, Deadman, Hal wrote:
> I don't think what you are trying to do should be done in the JSP by a
> struts/custom tag.
Maybe it's a dumb idea, but that's never stopped me before. =:]
> Why not copy the value objects in the HashMap to an array based on the order
> of the keys in
ren't attributes of the value
objects then you can pass the String array of keys to the JSP too.
> -Original Message-
> From: Steve A Drake [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 04, 2001 5:41 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Any Hashmap example
On Mon, 4 Jun 2001, Shamdasani Nimmi-ANS004 wrote:
> Steve,
>
> This is how I used a HashMap in a jsp:
>
>
>
>
>
>
>
>
>
>
> getUserList() method in my user_list bean returns a HashMap.
>
> Hope this helps.
>
> -Nimmi
Hi Nimmi. Your example would work fine if I didn't care about the order
PROTECTED]
Subject: RE: Any Hashmap examples used in jsp page?
Hi Jon. I'm having a similar problem as Dudley with a HashMap. I tried
playing around with your example but couldn't get it to work within the
context of what I'm doing. Perhaps another example would help. For
example, I ha
Hashmap examples used in jsp page?
Hi Jon. I'm having a similar problem as Dudley with a HashMap. I tried
playing around with your example but couldn't get it to work within the
context of what I'm doing. Perhaps another example would help. For
example, I have a scriptlet that looks
Hi Jon. I'm having a similar problem as Dudley with a HashMap. I tried
playing around with your example but couldn't get it to work within the
context of what I'm doing. Perhaps another example would help. For
example, I have a scriptlet that looks something like:
fee.fie.fo.sql.ResultSetBean r
Hi Dudley,
See code sample below. The type in the iterate tag must be as shown, you
will then need to use a bean define to put your 'value' into the page
context and cast it to whatever type you have placed in your HashMap value.
Hope this helps,
Jon.
-
8 matches
Mail list logo