OK, no problem I have everything in a good directory structure. I am really
having problems compiling this Servlet still.

When compiling, my Servlet is not finding basic things when importing.
javax.servlet, and javax.servlet.http are not found. Is this a classpath
problem?

Aaron

                <<:::..:::...::: Aaron Prohaska :::..:::...:::>>
VerdeSoft Internet Services
mailto:[EMAIL PROTECTED]          http://www.verdesoft.net/


-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Donald Vandenbeld
Sent: Thursday, July 20, 2000 11:53 AM
To: [EMAIL PROTECTED]
Subject: Re: [JSP-INTEREST] Storing sessions


Ah, what you are actually seeing is a classpath problem.  Just helped a guy
at work through this on Tuesday.

First, if your bean is in the shopping package, it must reside in
WEB-INF/classes/shopping or other classes won't be able to find it.

If you want to compile on the command line, you have to set your classpath
environment variable to include WEB-INF/classes (but not
WEB-INF/classes/shopping - it'll find the bean ok because of the package it
is in).

If you want to compile the bean from JBuilder, you have to add to JBuilder's
classpath.  In version 3.5, use Project Properties from the Project Menu.
Go to the Required Libraries tab and click the Add, New, Add buttons.
Choose the directory to add (WEB-INF/classes) and you are set.

Donald

----- Original Message -----
From: "Aaron Prohaska" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 20, 2000 12:09 PM
Subject: Re: Storing sessions


>
>
> OK, I think I understand the idea of organizing beans, but does that
> organization affect how the JSP/Servlets talk to the beans? For example if
I
> have a bean in package shopping and that bean is located in
WEB-INF\classes
> not in WEB-INF\classes\shopping, will the bean still work even though its
> not located in a direcotry corasponding to its package name?
>
> The reason I am asking is that I am having a hard time compiling a Servlet
> that imports shopping.Item; which is my bean. The bean compiles fine, just
> that when I compile the Servlet using JBuilder I get a error message
saying
> that shopping.Item; can't be imported.
>
> I get completely different error when compiling through the command line
in
> W2K Server and Linux.
>
> Aaron
>
>                 <<:::..:::...::: Aaron Prohaska :::..:::...:::>>
> VerdeSoft Internet Services
> mailto:[EMAIL PROTECTED]          http://www.verdesoft.net/
>

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