• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

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

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?


 
Sheriff
Posts: 22848
132
Eclipse IDE Spring Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes. a typo
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic