If what you say is correct why bother with the import directive at the begenning of the JSP page as the fully qualified name should work without this directive.
--- Filip Hanik <[EMAIL PROTECTED]> wrote: > > because the class attribute is what is used to > instantiate the bean. > class="package.myBean" > and for that it needs a fully qualified name, > otherwise in case you have more than one import > statement, it will not know which class you are > referring to. > > > Filip > > > -----Original Message----- > From: Percival Bragg > [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 29, 2003 5:19 PM > To: Tomcat-Users-Group > Subject: More Help With Beans Please > > > I have compiled 'myBean' into a 'package' and in the > JSP page I import the package with > > <%@ page import="package.*" %> > <jsp:useBean id="myid" class="myBean" /> > > The bean is located in > <tomcat-install>\webapps\ROOT\WEB-INF\classes\package > directory and the JSP page is located in the ROOT > directory. > > The above declaration doesn't work but the following > works > > <jsp:useBean id="myid" class="package.myBean" /> > > WHY??? > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up > now. > http://mailplus.yahoo.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] > __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
