My Development Enivronment is in the directory : C:\MyMVCProjects\BeerV1 I've placed my BeerExpert.java file in this directory : C:\MyMVCProjects\BeerV1\src\com\example\model After compilation, the class file for BeerExpert.java has been placed in this directory :C:\MyMVCProjects\BeerV1\classes\com\example\model Version 1 of the BeerSelect.java servlet is placed in this directory : C:\MyMVCProjects\BeerV1\src\com\example\web After compilation, the class file of version 1 of the BeerSelect.java servlet has been placed in this directory : C:\MyMVCProjects\BeerV1\classes\com\example\web
However, when I make changes to the version 1 servlet code to incorporate the usage of the model (i.e version 2 of the servlet), it doesn't compile. I have checked the code several times, and I can't see any errors with it as it is a carbon copy of what's in the book.
Can anyone please help me out of this? Thanks in advance.
Joined: May 22, 2006
This is the code for version 2 of the servlet (BeerSelect.java), if it helps (it is identical to the code in the book). BeerExpert.java (the model class) compiled successfully as I have mentioned in my earlier post.