Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

pg.80 chapter 3..is it a typo ?  RSS feed

 
nisha chidella
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In HFSJ. at page 80(Chapter 3.Mini MVC tutorial), the specs for the model class is given as:

The specs for the model:
-its package should be com.example.model.
-its directory structure should be /WEB-INF/classes/com/model



shouldn't the directory structure be /WEB-INF/classes/com/example/model ?


 
Rob Spoor
Sheriff
Posts: 21117
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why yes it should. The directory structure must match the package declaration.
 
nisha chidella
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
because in the book it's given it should be /WEB-INF/classes/com/model instead of /WEB-INF/classes/com/example/model. so, i wanted to confirm. the italic text in my post is from the book.

 
Harvinder Thakur
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes. a typo
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!