Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

bean write property doubt.

 
Jobin Mathew
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • 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.
 
Brent Sterling
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic