【发布时间】:2013-02-12 07:37:37
【问题描述】:
我在 Request scope 中有 Arraylist ,其中包含所有 Students 对象。
我在JSP page 中显示该数据
class Student
{
int sno;
String name;
String type; // here type can be either R or D
.
.
.
}
当我显示Student obj 数据时,我想检查student type
if type=D 然后我想添加 <select> 框
这个怎么办???
我正在使用struts 1.3 和JDBC
我的代码是
<logic:iterate id="student" name="allstudents" scope="request">
<bean:write name="student" property="sno" format="#"/><br>
<bean:write name="student" property="name" /><br>
<bean:write name="student" property="type" /><br>
// here i want to display <select> if type =D
.
.
.
</logic:iterate>
请帮帮我
提前致谢
【问题讨论】: