-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: First Hibernate application
PostPosted: Wed Feb 14, 2007 5:04 am 
Newbie

Joined: Wed Feb 14, 2007 4:49 am
Posts: 7
Hi all!
I'm starting my first project using Hibernate.
I have to use it in a Web application that uses Struts as Framework.
I'd like to have some advice about how to pass DB Data to JSP for displaying rows.
In other words, should I pass the "live" Hibernate Object (that maps the DB column) directly to the JSP. (With the <jsp:useBean> for example) and the JSP browses the object.
Or should I create a ValueObject (a copy of the Hibernate Object) and pass it to the JSP ?
Which is the best practice ?
Thanks
Francesco


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 14, 2007 12:04 pm 
Expert
Expert

Joined: Fri Aug 19, 2005 2:11 pm
Posts: 628
Location: Cincinnati
Whatever makes it easier to use. If you want the jsp to talk to the database or if you want the jsp to just handle displaying the information.


I'm not a big fan of jsp pages takling to the database though

_________________
Chris

If you were at work doing this voluntarily, imagine what you'd want to see to answer a question.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.