<html:select property="">得不到值
页面上是这样的 <html:select property="svrDueId" > <html:option value="">未指定 </html:option> <html:optionsCollection name="userlist" label="usrName" value="usrId" /> //这里读出来是有值得 </html:select> 代码里写的是 String svrDueId=request.getParameter("svrDueId"); 这时的值为空,为什么?要怎么改
到这里看看 看能不能解决你的问题 http://user.qzone.qq.com/492236022/blog/1221124323 为什么用这种方式呢?你用了html:select的property,那么你的Form里面肯定有这个属性吧?直接从form里面取不就好啦? 比如(***Form) f = (****Form) form; String svrDueId = f.getSvrDueId();//get/set在FormBean里面要写。引用 为什么用这种方式呢?你用了html:select的property,那么你的Form里面肯定有这个属性吧?直接从form里面取不就好啦? 比如(***Form) f = (****Form) form; String svrDueId = f.getSvrDueId();//get/set在FormBean里面要写。 问题是这样写也是空引用 引用 2 楼 crazylaa 的回复: 为什么用这种方式呢?你用了html:select的property,那么你的Form里面肯定有这个属性吧?直接从form里面取不就好啦? 比如(***Form) f = (****Form) form; String svrDueId = f.getSvrDueId();//get/set在FormBean里面要写。 问题是这样写也是空
相关问答:
比如我想做一个这样的网站: 获取外部html的代码,例如 http://www.cnblogs.com/ioriliao/ 的html代码然后用dom进行 解释。 现在遇到的问题就是如何去获取外部的html代码。 请高人指点。谢谢! ie --》保存
......
如何对xml内容数据进行比较 例如: <?xml version='1.0' encoding='utf-8'?> <TestLIST> <PID>40</PID> <TestName>深圳市</TestName>
......
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.IO; using Syst ......
HTML code: <h3>ZHONG BAO KE KONG INVESTMENT CO.,LTD(600208):Company Profile</h3> Company Profile - Xinhu Zhongbao Co., Ltd. <p> Co_id - 600208 <p> ---------------- ......
我在jsp页面查询到数据库中的一笔数据,并以table循环的形式显示,但需要下载保存成html格式,请问应该处理?代码有没有特殊要求?是不是需要特别的jar包? 你这是把报表保存为HTML格式,不知有什么用处, 要是 ......