This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes MVC pattern Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "MVC pattern" Watch "MVC pattern" New topic

MVC pattern

RamandeepS Singh
Ranch Hand

Joined: Aug 25, 2009
Posts: 63

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


Raman S
Jeanne Boyarsky
internet detective

Joined: May 26, 2003
Posts: 30130

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.)

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
I agree. Here's the link:
subject: MVC pattern
Similar Threads
annotations ?
Spring AOP issue
Hibernate: @schema notation & how to generate schema from the domains?
JSF Question
how to save collection object into database