include的问题和<html:option>中<bean:write>的问题 刚才我指的红色的那句是:<html:option value=" <bean:write name=\"element\" property=\"key\"/> "> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 1.是不是根servlet容器有关系?2.这样就行了.不用那么复杂 Vector options = new Vector(); options.add(new LabelValueBean("Label 0", "Value 0")); options.add(new LabelValueBean("Label 1", "Value 1")); options.add(new LabelValueBean("Label 2", "Value 2")); options.add(new LabelValueBean("Label 3", "Value 3")); options.add(new LabelValueBean("Label 4", "Value 4")); options.add(new LabelValueBean("Label 5", "Value 5")); options.add(new LabelValueBean("Label 6", "Value 6")); options.add(new LabelValueBean("Label 7", "Value 7")); options.add(new LabelValueBean("Label 8", "Value 8")); options.add(new LabelValueBean("Label 9", "Value 9")); pageContext.setAttribute("options", options);然后用: <html:select property="collectionSelect"> <html:options collection="options" property="value" labelProperty="label"/> </html:select> execute 方法只执行一次 解决客户端刷新问题? 关于java连接foxpro数据库的问题 视频下载问题 java连数据库 struts标签 急,我是新手 明天的考试题目! java中如何给手机发短信?有没有第三方接口》 安装了WEBLOGIC 评估版怎么看不到控制台呀? 烟草行业软件公司急招JAVA高级工程师/系统分析员 一个访问很慢的问题。
2.这样就行了.不用那么复杂 Vector options = new Vector();
options.add(new LabelValueBean("Label 0", "Value 0"));
options.add(new LabelValueBean("Label 1", "Value 1"));
options.add(new LabelValueBean("Label 2", "Value 2"));
options.add(new LabelValueBean("Label 3", "Value 3"));
options.add(new LabelValueBean("Label 4", "Value 4"));
options.add(new LabelValueBean("Label 5", "Value 5"));
options.add(new LabelValueBean("Label 6", "Value 6"));
options.add(new LabelValueBean("Label 7", "Value 7"));
options.add(new LabelValueBean("Label 8", "Value 8"));
options.add(new LabelValueBean("Label 9", "Value 9"));
pageContext.setAttribute("options", options);
然后用:
<html:select property="collectionSelect">
<html:options collection="options" property="value" labelProperty="label"/>
</html:select>