Yan Zhu wrote:
>
>  hey all,
>                   hmm, I am using iPlanet web server (enterrpise edition) sp2.
>                   trying to write some jsps, here is my problem, in my page, I have
>
>               something like this:
>
>               <%@ page import="yan.test.*"  %>
>
>               then if I do this:
>
>               <jsp:useBean id="faq" class="testBean"/>
>
>               and testBean is of course, in the yan.test package, and yan.test is
> in
>               my CLASSPATH etc.
>
>               it complains that it can't load the class, however if I do
>
>               <jsp:useBean id="faq" class="yan.test.testBean"/>
>
>               then it works. If I write a stand alone java program, then I can use
>               testBean just fine, which makes me think
>               something in iPlanet I am not setting correctly. what do you guys
> think?

The <jsp:useBean> action does not "see" the imports, so you always have to
use the fully qualified class name (i.e. package name + short name).

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

===========================================================================
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