I am creating a web application using a JSP and a java class, UtteranceInfo. The JSP creates a UtteranceInfo object and uses it. I am having trouble setting up the project in Eclipse. I created a new project making the project contents directory the root directory of my web application. Then I created a new package, utterance, that will contain the UtteranceInfo class. The compiled version of this class must reside in the WEB-INF/classes/utterance directory. I am confused because when I create the package, the utterance folder is placed in the web application root directory and then also appears under the WEB-INF/classes directory. Initially, the compiled .class file appeared under the WEB-INF/classes directory. But then when I made changes to the UtteranceInfo.java file, I can not find the newly compiled .class file. I see the old .class file under WEB-INF/classes. When I delete the old .class file under WEB-INF/classes directory I can not see where the new .class file is getting created. Can someone direct me to a place where I can find instructions on how to setup a project in Eclipse of this type? I have several books: Tomcat the Definitive Guide SCWCD Exam Study Kit The Developer's Guide to Eclipse I have also installed the Lomboz plugin which is handy for editting the jsp, but I don't understand how to utilize its full functionality. I am going to Microcenter tonight and will purchase any book you can recommend that would help me with this kind of setup. Thank you for any assistance you can provide to me in setting up my work environment for this project!
Originally posted by Robin Clark: I am confused because when I create the package, the utterance folder is placed in the web application root directory and then also appears under the WEB-INF/classes directory.
Didn't you say that the project folder is your source-folder and that WEB-INF/classes is your class folder? Then it's of course correct that the package occurs in both - in the former for the .java files, in the latter for the .class files. Am I missing something?
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Joined: Dec 17, 2003
This is exactly the type of information I was looking for. Thank you ever so much!
Joined: Jul 11, 2001
You're welcome! If only it were always that simple...
subject: How to create package for web app in Eclipse