aspose file tools*
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
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
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31079
    
163

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