| Author |
Using struts tag, retrieve value from Map & Vector
|
Abrahim Daver
Ranch Hand
Joined: Aug 06, 2004
Posts: 69
|
|
Hi, Using Struts tag, we normally refer value of bean value as <html:text property="bean.field" name="dynaform"/> Similarly to get value from an object containing vector holds again other objects, to retrieve first objects field value, can be written as <html:text property ="obj1.vectorName[0].fieldName" name="dynaForm"/> Now,in case, if a hashmap contains a vector which holds bean, how can we use above tag in that case... I tried like <html:text property="mapName(key).[vectorIndex].fieldName" name="dynaName" /> But it doesn't seem to be working.. Any help willbe appreciated. Thanks, Abra
|
 |
 |
|
|
subject: Using struts tag, retrieve value from Map & Vector
|
|
|