-->
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: displaying a hibernate request object on a web page
PostPosted: Fri Nov 09, 2007 9:59 pm 
Newbie

Joined: Tue Nov 06, 2007 4:12 am
Posts: 17
Maybe someone can help me out with this. I am storing a List of a Hibernate Table Object in the request attribute. When I display using the logic iterate tag I am getting this result

com.test.pokertables.PokerSites@13e6226
com.test.pokertables.PokerSites@13e6226
com.test.pokertables.PokerSites@1429cb2


I am using this.

<logic:iterate id="PokerSites" name="pokersites">
<tr><td><bean:write name="PokerSites" />

can someone tell me why this is happening and if there is a better or different way to display a hibernate object in a jsp page maybe you could tell me.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 10, 2007 12:07 am 
Newbie

Joined: Tue Aug 22, 2006 4:44 am
Posts: 7
Location: Madrid
With that code you are calling to the PokerSites toString() method.

try <bean:write name="Pokersites" property="name" /> instead

counting on Pokersites object having a "name" attribute (otherwise you should try with anything else you want to display)


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.