Actually I met the same problem,
so if I put my jsp under /dev/test/xxx.jsp as you described,
I will put my JavaBean under /dev/web-inf/classes/test/xxxBean.class,
and use "package test; " in Javabean and use "test.xxxBean" in JSP.

Yen-Ju

"Holmes III, William S" wrote:

> Howdy List,
>
> I checked through the archives and found posts relating to this, but none of
> them really
> explained why it happens.
>
> Here's a simplified series of events to create the problem:
>
> 1)  define a new context "/dev" and create it's associated web-inf/classes
> directory.
> 2)  create a simple bean "myBean" and put it in web-inf/classes.
> 3)  create a simple JSP that has the tag <jsp:useBean id="mb" scope="page"
> class="myBean" />.
>
> At this point everything works fine. The JSP compiles and is able to
> retrieve information from the bean.
>
> 4) create a subdirectory "test" under the /dev context.
> 5) move the JSP into the test subdirectory.
>
> The JSP no longer compiles. It seems to be looking for test.myBean instead
> of just myBean.
>
> This clears up if you make myBean part of a package and then reference it as
> "package.myBean"
> in the jsp:useBean tag. And yes, normally I use packages.
> I'm just curious if anyone knows why it does this?
>
> Cheers,
>    Bill
>
> ===========================================================================
> 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

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