This is accurate to the spec. <jsp:useBean /> doesn't use imported
packages. Some JSP engines (GnuJSP, notably) ignore this.

On Fri, 18 Aug 2000, Dave Lin wrote:

> dear Sir,
>     I got a problem when I use the <jsp:useBean/> tag, I have a bean in
> package com.xxx.yyy.zzz, when I write the code:
> <%@ import="com.xxx.yyy.zzz.*"%>
> <jsp:useBean id="bb" class="bean" scope="request">
>
> it doesn't work!!! but when I use
>
> <%@ import="com.xxx.yyy.zzz.*"%>
> <jsp:useBean id="bb" class="com.xxx.yyy.zzz.bean" scope="request">
>
> it works!! what's wrong w/ me?
> I use Linux + jdk.1.2.2 + tomcat, and I sure that I put the imported class
> in WEB-INF dir, thanx
>
> Dave
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

-----------------------------------------------------------
Joseph B. Ottinger               [EMAIL PROTECTED]
http://cupid.suninternet.com/~joeo      HOMES.COM Developer

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to