You can take a look at the Developing Applications with Tomcat
documentation:

http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/appdev/index.html

look at the WEB-INF/classes section and it describes what you'll need to do
in order to use packages to deploy your application.

Justy

----- Original Message -----

> Hi all,
> I want to write a few classes for my shopping cart.
> I will have a Item.java,Billing.java,Shipping.java and
> a ShoppingCart.java.
> I have a main DisplayShoppingCart.jsp file that will
> use those classes.
> Can someone tell me how to create a package containing
> all my class files and where to put this package so
> the jsp file knows where to get them.
>
> Also do I have to change my classpath?
>
> I tried creating a subfolder in the folder which
> contains my jsp files and naing it cart. I placed all
> my class files in there and used the :
>
> <%@ page import="cart.*"%> but It did'nt work.
>
> What am i doing wrong?
> Should I be putting my class files in the
> WEB-Inf/classes folder?
>
> Any help would be appreciated.
> Thanks Rui
>
>
> =====
> "If a rabbit's foot is so lucky,..... what happened to the rabbit?"
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>
>
===========================================================================
> 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