Thanks. And I do mean declared. I have a jsp that is included by a few other jsp's. Some of them declare a variable and some do not. Right now I have two files that are almost identical. One expects the variable to be present and the other does not. I am looking to consolidate these two files.
Charles -----Original Message----- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Friday, June 10, 2005 5:46 PM To: Tomcat Users List Subject: Re: Probably an easy answer If it is a class member you could conceivably use reflection to see if a given object/class has a member you name... if it's local though, no, it's a purely compile-time check. Do you really mean declared or do you perhaps mean initialized? Frank Charles P. Killmer wrote: > Is there a way to, at runtime, check if a variable is declared? I > have some code that I want to behave differently depending on whether > or not a variable has been declared. I tried using a try catch block > but it gets caught at compile time. > > Thanks > Charles > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
