aspose file tools
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
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply 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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Can we access lazy collection from jsp page
 
Similar Threads
[SCBCD 5.0] Possibly error in EJB 3.0 persistence spec
Send resultset from servlet to jsp
what is lazy initialization in hibernate
JAXB+Hibernate=LazyInitializationException
JPA:I get cannot simultaneously fetch multiple bags when >=2 enteties FetchType.EAGER