• 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

Writting Nested Properties

 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm having issues getting values out of my nested beans.
The structure is like this. I put a subBean into a topBean. I put the topBeans into a Vector and I put that into the request.

in my JSP I get the vector out of session and iterate through it, getting out topBeans. From time to time I want values from inside of those subBeans though. How can I get them without a bunch of scriptlets in the page?

My current clode looks like this:


this however, obviously, is not working. What other tags can I consider? Am I using these improperly? To my thinking that "nested:nest" tag needs a "name" tag to work properly. How can I make sure it's getting it from topBean.

Just to clarify, when I use the <bean:write name='topBean' property='valueName' /> on it's own here I get the Bean type on the screen, not the value I'm looking for.

thanks for your help
 
Gran Roguismo
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
alright, I got what I needed.
I defined the bean while it was iterating through
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic