I need to set the tooltip(title) on the html components.
Here is my code:
In Action class:
MyForm myForm = (MyForm) form;
List<String> listOfTitle = new ArrayList<String>();
listOfTitle.add("AAA");
listOfTitle.add("BBB");
listOfTitle.add("CCC");
listOfTitle.add("DDD");
myForm.setListOfTitle(listOfTitle);
return mapping.findForward("myJsp");
Here the jsp code:
<td>
<html:text name="myForm" errorStyleClass="validError" property="name"
size="20" title="${listOfTitle[0]}"/>
</td>
<td>
<html:text name="myForm" errorStyleClass="validError" property="address"
size="20" title="${listOfTitle[1]}" />
</td>
but listOfTitle[0],listOfTitle[1]
gets empty string ("").
please suggest me how i can use the List value using index to display the title on each html components in struts1.x?
Thanks in Advance,
Anand