[htmltmpl-java] testing for parameter existence
Status: Beta
Brought to you by:
bluesmoon
From: Costantino, D. <Dan...@gs...> - 2002-12-11 00:28:14
|
Hi, I want to test for the existence of a parameter in a template. How can I do this without generating a java.util.NoSuchElementException? At present, I simply wrap each getParam(<test_name>) call around a try ... catch block. This seems inefficient. Is this the only way to do it? I only trying to determine if the template variable exists in the specific html template I'm presently reading. I don't actually need its value. Thanks -Dan |