RE: Taglib loading classes of web application

2004-10-27 Thread Michael Wille
and it's cruising for a bruising, as you've already found out. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Dov Rosenberg [mailto:[EMAIL PROTECTED] Sent: Friday, October 22, 2004 9:52 AM To: Tomcat Users List Subject: Re: Taglib loading classes of web application

Re: Taglib loading classes of web application

2004-10-22 Thread Dov Rosenberg
Instead of checking the type of class by doing getClass().getName() I would recommend using If (myclass instanceof com.name.webapp.entities.MetaDataEntity){ ... } else { ... } This is better because you can check the presence of a class at compile time instead of runtime when you do things like

RE: Taglib loading classes of web application

2004-10-22 Thread Shapira, Yoav
://www.yoavshapira.com -Original Message- From: Dov Rosenberg [mailto:[EMAIL PROTECTED] Sent: Friday, October 22, 2004 9:52 AM To: Tomcat Users List Subject: Re: Taglib loading classes of web application Instead of checking the type of class by doing getClass().getName() I would recommend using

Taglib loading classes of web application

2004-10-21 Thread Michael Wille
Hello all, I have a strange question. I need to load a class that is inside a packkage of a web application from within a taglib that the web application is using within its context. Let me try and explain this: I have a bunch of entities in the package: com.name.webapp.entities. In this