<%
List ziDuanList= (List)request.getAttribute("ziDuanList");
List fuhaoList= (List)request.getAttribute("fuhaoList");
List ziValueList= (List)request.getAttribute("ziValueList");
List cellList1= (List)request.getAttribute("cellList1");
for(int i=0;i<ziDuanList.size();i++){
Object obd =(Object)ziDuanList.get(i);
Object obh =(Object)fuhaoList.get(i);
Object obz =(Object)ziValueList.get(i);
String ziDuan1=obd.toString();
String fuHao1=obh.toString();
String zhi1=obz.toString();
%><select name="ziDuan">
<option value="">请选择=============<%=ziDuan1%></option>
<s:iterator value="cellList" id="cellList">
<s:if test="<%=ziDuan1%>== configField">
<option selected="selected" value="<s:property value='configField'/>+<s:property value='fieldType' />"><s:property value="CName" /></option>
</s:if>
<s:else>
<option value="<s:property value='configField'/>+<s:property value='fieldType' />"><s:property value="CName" /></option>
</s:else>
</s:iterator>
</select>总是在s:if标签报错,不知道怎么个写法了...
List ziDuanList= (List)request.getAttribute("ziDuanList");
List fuhaoList= (List)request.getAttribute("fuhaoList");
List ziValueList= (List)request.getAttribute("ziValueList");
List cellList1= (List)request.getAttribute("cellList1");
for(int i=0;i<ziDuanList.size();i++){
Object obd =(Object)ziDuanList.get(i);
Object obh =(Object)fuhaoList.get(i);
Object obz =(Object)ziValueList.get(i);
String ziDuan1=obd.toString();
String fuHao1=obh.toString();
String zhi1=obz.toString();
%><select name="ziDuan">
<option value="">请选择=============<%=ziDuan1%></option>
<s:iterator value="cellList" id="cellList">
<s:if test="<%=ziDuan1%>== configField">
<option selected="selected" value="<s:property value='configField'/>+<s:property value='fieldType' />"><s:property value="CName" /></option>
</s:if>
<s:else>
<option value="<s:property value='configField'/>+<s:property value='fieldType' />"><s:property value="CName" /></option>
</s:else>
</s:iterator>
</select>总是在s:if标签报错,不知道怎么个写法了...
解决方案 »
- Servlet2.5+ jsp2.1 +jstl1.1可以吗?
- 时间相减 问题?不知道怎么回事?请大侠们帮助!
- 为什么分层结构,Spring 事务就不起作用呢,如果不分层就起作用。
- 100分!求List如何生成此数据结构
- JBoss4 + Eclips部署EJB,报错,忘高人指点指点,多谢了!
- 有关struts多模块资源文件的问题
- **struts问题求解,请执教,谢谢!!**
- Exception in thread "main" java.lang.NoClassDefFoundError:test 是怎么回事!
- 怎么远程调用EJB,救命呀!!!
- java能不能编出一个小窗口 窗口里有IE的功能 /????
- 页面至后台取值
- ArrayDescriptor无效的名称模式 oracle存储过程传递数组问题 求救。。
<%
session.setAttribute("ziDuan1_key", ziDuan1);
%>
2>在Struts标签中.取session中的数据.
<s:if test="#session.session_key == configField">