i have a bean class WordBean with the following structure
public class WordBean
{
public WordList getWordList()
{
return wordList;
}
public void setWordList(WordList wordList)
{
this.wordList= wordList;
}
}
WordList class with the following structure
public class WordList
{
private List itemList = new ArrayList();
public void setItemList(List itemList )
{
this.itemList = itemList ;
}
public List getItemList()
{
return itemList;
}
}
In my javascript , i need to get the retrieve the list itemList to do some validations
var items = document.WordBean.WordList.itemList;
But i am not getting any values here ?
so kindly suggest on the better syntax to retrieve the List?