Re: [htmltmpl-java] testing for parameter existence
Status: Beta
Brought to you by:
bluesmoon
From: Philip S T. <phi...@gm...> - 2002-12-11 04:54:50
|
On Tue, 10 Dec 2002, Costantino, Dan wrote: > 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 ... Currently this seems to be the only way, but I think it is reasonable enough to add another method that will do what you want. Expect it in the next version, or get CVS in a few hours. Philip -- "If people could put rainbows in zoos, they'd do it." -- Hobbes |