|
well i dont know anything about JSP, but i know that in regular programming, to prevent added a duplicate object to a certain list, you can use a HashSet.
Set<TypeName> list = new HashSet<TypeName>();
list.add(whateverYouWantToAdd);
If the use enters something duplicate, the hashset silently ignores this, and it is not added.
I hope that helps.
__________________
//Haha javac, can't see me now, can ya?
|