wood burning stoves 2.0*
The moose likes Object Relational Mapping and the fly likes Can we access lazy collection from jsp page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Can we access lazy collection from jsp page" Watch "Can we access lazy collection from jsp page" New topic
Author

Can we access lazy collection from jsp page

MaheshS Kumbhar
Ranch Hand

Joined: Sep 24, 2009
Posts: 188
Can we access a List collection which is set as lazy=true, from jsp page ? Or do we get an exception while accessing lazy lists?


I am slow but sure
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Yes you can, assuming you have an active session.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Can we access lazy collection from jsp page
 
Similar Threads
what is lazy initialization in hibernate
[SCBCD 5.0] Possibly error in EJB 3.0 persistence spec
JAXB+Hibernate=LazyInitializationException
Send resultset from servlet to jsp
JPA:I get cannot simultaneously fetch multiple bags when >=2 enteties FetchType.EAGER