• 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

bean write property doubt.

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey
I am using the bean write tag

<bean:write name="city" property="803"/>

Here if I give the property as shown I got the result.
But I need to pass a variable in place of '803' or any variable in my DTO.
But the thing is that the class city (name="city")and the DTO is different one. city is a collection.

Any way for this.

I tried property='myDTO.cityId'.
But I think, it is looking the property in city.
Isn't it?

Thanks in advance.
 
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What? Are you saying that the syntax that you have shown will return the 803rd item from your collection? Could you post the relevant code?

- Brent
reply
    Bookmark Topic Watch Topic
  • New Topic