This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes Problem with import statement Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Problem with import statement" Watch "Problem with import statement" New topic
Author

Problem with import statement

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I have a (Shop)Bean file saved and compiled in
E:\servlets\jswdk-1.0.1\examples\WEB-INF\jsp\beans\shopping\CD.class
I have my servlet(SS) which uses this bean file in
E:\servlets\jswdk-1.0.1\examples\WEB-INF\servlets
In my servlet I say
import shopping.Beanfile
I get an error when I compile my servlet
SS.java:5: Class shopping.shop not found in import.
import shopping.CD;
^
1 error
What does this mean what is the mistake I am making???
Srividya Shiv
Ranch Hand

Joined: Jul 20, 2000
Posts: 31
Try setting the classpath to where ur bean classes are located
 
 
subject: Problem with import statement
 
Similar Threads
JSP not working in JWS
Can not find server or DNS error
How to run a Servlet using java web server
Reading local file
How to test my servlet