File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes How do I display the first item from a Hibernate set in JSTL? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "How do I display the first item from a Hibernate set in JSTL?" Watch "How do I display the first item from a Hibernate set in JSTL?" New topic
Author

How do I display the first item from a Hibernate set in JSTL?

Dave Alvarado
Ranch Hand

Joined: Jul 02, 2008
Posts: 436
Hi,

I'm using Spring 3.1.1.RELEASE, Hibernate 4.1.0.Final, and JBoss 7.1.3 AS. I have a Hibernate entity with this field …



I would like to reference the first address in the field and so through JSTL I tried doing this:



However I get the exception …



Is it possible to access the first address object? Thanks, - Dave
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do I display the first item from a Hibernate set in JSTL?