Robert is right, you need to put the bean in WEB-INF/classes under your web
application root. If such a directory does not exist, just create it.

Forte 2.0 Internet Edition has better support for web application support,
so it would create this directory for you. But in the Community Edition you
have to create it manually.

Petr


----- Original Message -----
From: "Normand Laurin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 14, 2001 10:02 PM
Subject: Re: Where to put bean with Forte 2.0


> Actually there is no WEB-INF nor classes directory anywhere.
> The only directory I see that could be of interest is called beans
> and I tried to put my bean there but it doesn't work either.
>
>
> >>> [EMAIL PROTECTED] 03/14/01 03:25PM >>>
> You should have a WEB-INF directory and under this is a classes directory
> that's where your classes have to go.
>
> Try to read up on web applications and the directory structure.
>
>
> > -----Original Message-----
> > From: A mailing list about Java Server Pages specification and reference
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Normand Laurin
> > Sent: Wednesday, March 14, 2001 8:57 AM
> > To: [EMAIL PROTECTED]
> > Subject: Where to put bean with Forte 2.0
> >
> >
> > Hi,
> >
> > Is there a specific place in Forte 2.0 where I should put my
> > newly created Javabean.
> > Right now it's located at the same place as my jsp pages.
> >
> > However when I use <@ page import="packagename.beanclass">
> > and <jsp:usebean   id="beaninstance"  scope=session
> > class="packagename.beanclass">...
> > I get the following error message:
> > CLASS MYBEAN NOT FOUND IN TYPE DECLARATION OR IMPORT
> >
> > And wherever I put it, I always have this message.
> >
> > ==================================================================
> > =========
> > 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://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".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> 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".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> 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".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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