做一个电影类型的下拉框 ,类型的定义如下。
public class Category
{
public int CategoryId
{
set;
get;
}
public virtual List Movies
{
set;
get;
}
public string CategoryName
{
set;
get;
}
}
不是联动查询直接用EL来取。
请选择xxx类别...
${xxx.typeName }
/c:forEach
请选择xxx类别...
${xxx.typeName }
/c:forEach
类似这种形式
查询到的数据已集合的方式返还给页面 , el表达式循环输出就好
可以用
c:forEach