B
blaine
I would like to test to see if a parameter exists in the html file
prior to calling getParameter(<key>), however I can not find any sort
of method to allow me to do this.
Is there a containsKey() method or something similar so that I could
write code like:
String[] keys = {"key1","key2"};
Hashtable ht = new Hashtable();
for(int i = 0; keys.length > i; i++){
if ( <KEY EXISTS IN HTML PARAMETER LIST> ){
ht.put(keys, getParameter(keys);
}
}
I know that I could just "try" and "catch" the getParameter, but this
does not seem as clean as just doing a test for existence.
Any help would be appreciated.
prior to calling getParameter(<key>), however I can not find any sort
of method to allow me to do this.
Is there a containsKey() method or something similar so that I could
write code like:
String[] keys = {"key1","key2"};
Hashtable ht = new Hashtable();
for(int i = 0; keys.length > i; i++){
if ( <KEY EXISTS IN HTML PARAMETER LIST> ){
ht.put(keys, getParameter(keys);
}
}
I know that I could just "try" and "catch" the getParameter, but this
does not seem as clean as just doing a test for existence.
Any help would be appreciated.