On Wednesday 12 December 2001 03:37 pm, you wrote: > I can imagine lots of cases where you would need to verify if an > attribute exists because you may want to do something different if it > does than if it does not.
String value = configuration.getAttribute("attr", null); if (value == null) { //there was no attribute } else if ("".equals(value)) { //exists but empty } else { //exists and non-empty } -pete -- peter royal -> [EMAIL PROTECTED] -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>