have two classes "Parent" and "Child"
as shown below.
class Parent
{
private ArrayList childList;
public void setChildList(ArrayList al)
{
childList = al;
}
public ArrayList getChildList()
{
return childList;
}
public boolean addChildToList(Child c)
{
return childList.add(c);
}
}
and i have another class Child
class Child
{
private
String name;
public void setName(String nm)
{
name = nm;
}
public String getName()
{
return nm;
}
}
Lets assume that i have "parent" object in session. In my
JSP page i want to have a drop
down of the names from the childList collection of parent class. How will I do it using JSTL.
<html options ..... > ?
Any help will be appreciated.
Thanks in advance.