RE: [htmltmpl-java] testing for parameter existence
Status: Beta
Brought to you by:
bluesmoon
From: Costantino, D. <Dan...@gs...> - 2002-12-12 14:25:50
|
That's a good question ... I suppose I'm looking for the same functionality as the perl HTML::Template params() method. That returns all the top level tmpl_if, tmpl_include, tmpl_loop, tmpl_unless, and tmpl_var parameters. I've never tested for a parameter inside a loop, just the loop itself. Dan -----Original Message----- From: Philip S Tellis [mailto:phi...@gm...] Sent: Wednesday, December 11, 2002 10:10 PM To: htm...@li... Subject: RE: [htmltmpl-java] testing for parameter existence On Wed, 11 Dec 2002, Costantino, Dan wrote: > I downloaded and tested the new Template.java and tested the > containsKey() method. Unfortunately, this method only works after a > call to setParam(). For example, suppose I have the following in my Ok, I guess I misunderstood what you needed. I'll need to check the .tmpl file for existence of the parameter. Question is, how do we identify params within loops, or do we just look at top level params only. Philip -- Scully: (to counsellor) I trust him (Mulder) as much as anyone. I trust him with my life. "The X-Files: Irresistible" ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ _______________________________________________ Html-tmpl-java-users mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/html-tmpl-java-users URL: http://html-tmpl-java.sourceforge.net/ |