RE: Struts and plugin question

2004-03-31 Thread Andrew Hill
nt want to introduce a dependency on servlet.jar so just do it like I said below. -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Wednesday, 31 March 2004 23:08 To: Struts Users Mailing List Subject: RE: Struts and plugin question But, fact is that when I want to get my comp

RE: Struts and plugin question

2004-03-31 Thread Andrew Hill
But, fact is that when I want to get my component from servletcontext I have to cast it to my proper type. Is there a way to avoid that? Not really, but you could create a static (or non static if you like) helper method somewhere to take care of both remembering the key and casting: public cl