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
Author

MVC pattern

RamandeepS Singh
Ranch Hand

Joined: Aug 25, 2009
Posts: 63
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30130
    
150

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: http://aspose.com/file-tools
 
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