File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

bean write property doubt.

Jobin Mathew
Ranch Hand

Joined: Oct 17, 2006
Posts: 83
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
I agree. Here's the link:
subject: bean write property doubt.
It's not a secret anymore!