Purav,
If the beans are in a package, you should be able to import the package
with the import statement and then just use:

SomeClass myClass = new SomeClass();

to create an instance variable of the bean.

The bigger question to ask is, "Why do you want to instantiate and use
beans from within a tag library?".

The JSP spec. makes beans very easy to use from within JSP pages.  When
using them from within a tag, you have to write code to access and use the
bean. You are also strongly coupling the bean and the taglib together when
you could just use a bean as a parameter to a more generic tag that could
be used to work with multiple beans.  What is your tag doing with the bean?

Regards,

Richard

At 12:44 PM 12/25/2001 +0530, you wrote:

>Hello,
>
>
>
>I am using Tomcat 4.
>
>I want to instantiate my Beans in my taglibs.
>
>The Beans are located in web-inf/classes directory and taglibs are located
>in web-inf/lib directory
>
>In JSP page I can use the jsp:useBean tag, but in my Taglib , how do I
>instantiate the bean. They are in a different directory&
>
>Please Help
>
>
>
>
>
>Purav
>
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to