aspose file tools
The moose likes Struts and the fly likes Using struts tag, retrieve value from Map & Vector Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Using struts tag, retrieve value from Map & Vector" Watch "Using struts tag, retrieve value from Map & Vector" New topic
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
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Using struts tag, retrieve value from Map & Vector
 
Similar Threads
Pro Jakarta Struts, Second Edition : Development Question
To retrieve new value from text box
Question on html struts tag
STRUTS: client-side validation in jsp using DynaValidatorForm
retrieving data from logic:iterate