GeeCON Prague 2014*
The moose likes Struts and the fly likes bean write property doubt. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "bean write property doubt." Watch "bean write property doubt." New topic
Author

bean write property doubt.

Jobin Mathew
Ranch Hand

Joined: Oct 17, 2006
Posts: 83
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

Joined: Feb 08, 2006
Posts: 948
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
 
GeeCON Prague 2014
 
subject: bean write property doubt.