Hello Friends,

Can any one help me. My requirment is convert jsp scriptlet code to JSTL

<%
ArrayList lableValueBeanObjForStaff = (ArrayList) request.getAttribute ("courseDetailsListForStaff");
if(!lableValueBeanObjForStaff.isEmpty())
{
Iterator itrForStaff = lableValueBeanObjForStaff.iterator();
while(itrForStaff.hasNext())
{
%>
<html:select name="manageUsersForm" property="courseNumber" >
<%
LabelValueBean labelValueBeanForStaff = (LabelValueBean)itrForStaff.next();
ArrayList lableValueBeanObjForStud = (ArrayList) request.getAttribute("courseDetailsListForStud");
if(!lableValueBeanObjForStud.isEmpty())
{
Iterator itrForStud = lableValueBeanObjForStud.iterator();
while(itrForStud.hasNext())
{
LabelValueBean labelValueBeanForStud = (LabelValueBean)itrForStud.next(); if(labelValueBeanForStud.getValue().equals(labelValueBeanForStaff.getValue()))
%>
<option value="<%=labelValueBeanForStaff.getValue()%>" selected><%=labelValueBeanForStaff.getLabel()%></option>
<%
}else
{
%>
<option value="<%=labelValueBeanForStaff.getValue()%>"><%=labelValueBeanForStaff.getLabel()%></option>
<%
}
}
}
%>
</html:select>
<%
}
}
%>

Thanks,
sidiq