Duc Nguyen wrote:
> Hi all,
>
> I have a question I have a bean Called ProductBean have the package of
> Product.ProductBean.  In my jsp page I've used this statement  <%@ page
> import="Product.ProductBean"%> to import the product bean. In my jsp
> page if I do something like this <jsp:useBean id="product"
> class="ProductBean" scope="request" /> it would give me an error say
> that it can't find ProductBean.  However, if I put it like this
> <jsp:useBean id="product" class="Product.ProductBean" scope="request" />
> then it would work.  I just wonder if this is Tomcat error.  Can someone
> verify this for me please.

It's not a bug. The spec says that the "class" attribute value must
be a fully qualified class name, i.e. both the package and the class
name. It doesn't matter if you have imported the package or not.

Hans
--
Hans Bergsten           [EMAIL PROTECTED]
Gefion Software         http://www.gefionsoftware.com
JavaServer Pages        http://TheJSPBook.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to