代码伺候。
<%
...
request.setAttribute("yearReq",year1);
request.setAttribute("wissueReq",week);
%>
request.setAttribute("yearReq",year1);
request.setAttribute("wissueReq",week);
%>
<
td
width
="12%"
height
="30"
bgcolor
="#FFFFEF"
class
="STYLE1"
>
年度:
</ td >
< td width ="12%" bgcolor ="#FFFFFF" >
< select id ="year" name ="year" style ="width:100px !important" >
< logic:notEmpty name ="allYears" >
< logic:iterate id ="year" name ="allYears" >
< option value ="${year}" <c:if test ="${yearReq==year}" > selected </ c:if > >${year} </ option >
</ logic:iterate >
</ logic:notEmpty >
</ select >
</ td >
< td width ="12%" height ="30" bgcolor ="#FFFFEF" class ="STYLE1" >
期号:
</ td >
< td width ="12%" bgcolor ="#FFFFFF" >
< select id ="allwissue" name ="wissue" style ="width:100px !important" >
< c:forEach var ="i" begin ="1" end ="52" step ="1" >
< option value ="${i }" <c:if test ="${wissueReq==i}" > selected </ c:if > >${i} </ option >
</ c:forEach >
</ select >
</ td >
年度:
</ td >
< td width ="12%" bgcolor ="#FFFFFF" >
< select id ="year" name ="year" style ="width:100px !important" >
< logic:notEmpty name ="allYears" >
< logic:iterate id ="year" name ="allYears" >
< option value ="${year}" <c:if test ="${yearReq==year}" > selected </ c:if > >${year} </ option >
</ logic:iterate >
</ logic:notEmpty >
</ select >
</ td >
< td width ="12%" height ="30" bgcolor ="#FFFFEF" class ="STYLE1" >
期号:
</ td >
< td width ="12%" bgcolor ="#FFFFFF" >
< select id ="allwissue" name ="wissue" style ="width:100px !important" >
< c:forEach var ="i" begin ="1" end ="52" step ="1" >
< option value ="${i }" <c:if test ="${wissueReq==i}" > selected </ c:if > >${i} </ option >
</ c:forEach >
</ select >
</ td >