当前位置: 代码迷 >> J2SE >> 一个标签有关问题,
  详细解决方案

一个标签有关问题,

热度:77   发布时间:2016-04-24 13:50:35.0
一个标签问题,急。。。。
<html:option   value= " ">
</html:option>
如果我要在value中放变量怎么写,谢谢

------解决方案--------------------
<%int i;

...
%>
<html:option value= " <%= i%> ">
</html:option>


大体上应该是这样,我也好久不写了,你试试,差不多
------解决方案--------------------
<%
String id...
String name....
%>
<html:select property= " "
<html:option value= " <%=id%> "> name </html:option>
  相关解决方案