• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Need help in using tags for below code

 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
List personList = dao.findAll();

for (Iterator i = personList.iterator(); i.hasNext(); )
{
Person person = (Person) i.next() ;
Set ev = person.getEvents();
Event e = (Event)ev.iterator().next();
System.out.println(" name= "+ person.getFirstname() + " " +e.getTitle() );
}
I want to display the name and title on my JSP page but I want to know how to use struts tags for this?
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
 
shah rah
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the code. This is what I am getting when I run my jsp.

failed to lazily initialize a collection of role: com.hibernate.Personpersistence.Person.events, no session or session was closed
[1/7/09 8:46:27:859 EST] 00000039 LocalTranCoor E WLTC0017E: Resources rolled back due to setRollbackOnly() being called.

I have lazy="false" in my hibernate mapping and I still get the above error

 
Men call me Jim. Women look past me to this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic