-->
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.  [ 3 posts ] 
Author Message
 Post subject: passing POJO from one jsp to another
PostPosted: Tue Feb 22, 2005 9:30 pm 
Beginner
Beginner

Joined: Mon Sep 06, 2004 9:36 am
Posts: 35
Hibernate version: 2.17


Hi guys,

I have a web page which has 2+ jsps. This question is only related to two of them. In first jsp i retrieve data and recieve a POJO. I need the same POJO in the second jsp. Usually to pass data from one jsp to another I submit the first jsp's form to second jsp.
How can I pass POJO from one jsp to another? I dont want to retrieve it again.

Thanks


Top
 Profile  
 
 Post subject: session
PostPosted: Wed Feb 23, 2005 2:09 am 
Newbie

Joined: Mon Sep 06, 2004 1:39 pm
Posts: 18
Location: Utah, USA
I might consider placing the POJO in the session. Keep in mind that after you retrieve the POJO on the 2nd JSP that it will be a detached object from the perspective of hibernate. This would require special handling if you wanted to then change it and persist it. If you simply want to display it then there should be nothing more to do.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 23, 2005 5:33 am 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
Quote:
Keep in mind that after you retrieve the POJO on the 2nd JSP that it will be a detached object from the perspective of hibernate


not if you use long session per application transaction

_________________
Anthony,
Get value thanks to your skills: http://www.redhat.com/certification


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.