Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MVC pattern

 
RamandeepS Singh
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

I am newbie to java.. somebody told me its baad practise to use hibernate pojos in our jsps,

so what should we do in that case... what is the difference between weblayer pojo and db related pojo

and how is the db pojos in jsp is bad practise

PLEASE HELP ME!!

Thanks
Raman S
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34371
345
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's bad practice to have any Java code in your JSP. Or is he saying that JSP tags should not reference objects that happen to be Hibernate POJOs? (I think the later is fine so long as you have disconnected them from the database.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic