This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am creating my first servlet by hand (ie not using eclipse) and am trying to follow the explanation in Head First Servlets ch3 page 81.
File structure is like this:
I am running command from \tomcat-7\webapps\Beer-v1\ folder.
jar file I need in classpath is \tomcat-7\lib\servlet-api.jar
For the exercise I have created this folder:
\tomcat-7\webapps\Beer-v1\WEB-INF\classes\com\example\web\ (but nothing yet in this folder)
I am running on Windows so at \tomcat\webapps\Beer-v1\ folder I tried:
M:\java\java_web_programming\tomcat-7\webapps\Beer-v1>javac -classpath M:\java\j
ava_web_programming\tomcat-7\lib\servlet-api.jar;classes;. -d ./WEB-INF/classes
And that created a class file in WEB-INF/classes
Is that the correct place for them?
I don't mind changing the structure - just using what is recommended in book.