A Map is proabably a better data structure to use than a collection. I'd
consider changing the way the rules are stored, or converting the Collection
to a Map in your action.
Paul
> -Original Message-
> From: Muhammad Momin Rashid [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 07, 20
I may not fully understand what you're
trying to do, but why not use a HashSet instead? Let the table name
be the key to the rule.
This may or may not be helpful: http://www.javapractices.com/Topic65.cjp.
Dennis
"Muhammad Momin Rashid"
<[EMAIL PROTECTED]>
Sent by: news <[EMAIL PROTEC
Hello Muhammad,
I hope that you are using custom tags for this.
I would create a new custom tag to determine if the
rule is present in the collection...
display table x
This tag would then look in the collection for the
specific rule, not by iterating through the collection
but by trying
Obviously, it's still too early for
me. A HashMap is what I meant to say.
Dennis
[EMAIL PROTECTED]
10/07/2004 08:15 AM
Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>
To
"Struts Users Mailing
List" <[EMAIL PROTECTED]>
cc
Thank you for replying, I believe that your idea of using the hashMap is
probably the best one. Is it possible for you to provide me some assistance
with a sample jsp tag to accomplish this? e.g. lets say that I have a
hashMap with rules x, y and z defined (where x, y and z are the keys. Whi
5 matches
Mail list logo