I'm talking about jsp 1.0 and above here.

In the file structure of your web application you should have the following
path
{appname}/WEB-INF/classes

You should put your classes there. If your classes are part of packages
(which they probably should be) the directory structure should be built from
there.

For example:

Your class -
com.foo.bar.Example;

The directory -
{appname}/WEB-INF/classes/com/foo/bar/Example.class

Then in your jsp -
<%@page import="com.foo.bar.Example" %>



-----Original Message-----
From: Xiaofeng Wang [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 17, 2000 9:35 AM
To: [EMAIL PROTECTED]
Subject: a question on bean


hi all,

I want to use a bean in an jsp page.

but where should I put the bean(I mean the class file).

The same with the jsp page or somewhere else?

and how to tell the jsp the path of the bean?

Thanks.

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