主题: 我kindeditor+struts2,在Action里得不到编辑器的内 |
作者: herry, 发布日期: 2012-12-09 16:59:57, 浏览数: 2892 |
这是我的jsp的代码:
<body> <div class="mtitle"> <h1>打开新的缺陷</h1> </div> <form action="<%=basePath %>view/fault/openFault.action" method="post" name="myform" id="myform"> <div> <table width="99%" border="0" cellpadding="0" cellspacing="0" class="CContent"> <tr> <td class="CPanel"> <table border="0" cellpadding="0" cellspacing="0" style="width:100%"> <tr> <td width="100%"> <fieldset style="height:100%;"> <legend >打开缺陷</legend> <table border="0" cellpadding="2" cellspacing="1" style="width:100%"> <tr> <!-- <td nowrap align="right" width="10%">缺陷编号:</td> <td width="20%"><input name="text" id="fnumber" class="text" style="width:150px" type="text" size="40" /></td> --> <td nowrap align="right" width="13%">缺陷名称:</td> <td width="20%"><input name="faultInfo.fname" id="fname" class="text" style="width:150px" type="text" size="40" /></td> <td align="right" width="17%">项目名称:</td> <td> <select name="projectInfo.pid" id="pname" width="50px" onchange="selectAllModelsForProject(this.value);selectAllFlevel(this.value);"> <option value="0">=请选择项目=</option> </select> </td> </tr> <tr> <td align="right" width="17%">模块名称:</td> <td> <select name="modelInfo.mid" id="mname" width="50px"> <option value="0">=请选择模块=</option> </select> </td> <td nowrap align="right">缺陷状态:</td> <td>打开</td> <td align="right">缺陷级别:</td> <td><select name="faultInfo.flevel" id="flevel" width="50px"> <option value="0">=请选择缺陷级别=</option> </select></td> </tr> <tr> <td nowrap align="right">缺陷类型:</td> <td><select name="faultType.ftid" id="ftype" width="50px"> <option value="0">=请选择缺陷类型=</option> </select></td> <td nowrap align="right" width="10%">原始输入:</td> <td width="20%"><input name="faultInfo.input" id="input" class="text" style="width:150px" type="text" size="40" /></td> <td nowrap align="right" width="13%">预期输出:</td> <td width="20%"><input name="faultInfo.idealOutput" id="idealOutput" class="text" style="width:150px" type="text" size="40" /></td> </tr> <tr> <td align="right" width="17%">实际输出:</td> <td width="20%"><input name="faultInfo.realOutput" id="realOutput" class="text" style="width:154px" /></td> <td align="right" width="17%">发现人员:</td> <td width="20%">${user.unumber }</td> </tr> <tr> <td nowrap align="right" height="120px">缺陷信息:</td> <td colspan="3"> <textarea id="finfo" name="finfo" cols="90" rows="40" style="width:700px;height:200px;visibility:hidden;"><%=htmlspecialchars(htmlData)%></textarea> </td> </tr> </table> <br /> </fieldset> </td> </tr> </table> </td> </tr> <tr> <td colspan="2" align="center" height="50px"> <input type="button" name="Submit" value="保存" class="button" onclick="return checkOpen();return confirm('您确定要打开这个缺陷吗?');"/> <input type="button" name="Submit2" value="返回" class="button" onclick="window.history.go(-1);"/></td> </tr> </table> </td> </tr> </table> </div> </form> </body>这是我Action的部分代码:
public String openFault() throws Exception { HttpServletRequest request=ServletActionContext.getRequest(); String temp=request.getParameter("finfo"); System.out.println("temp="+temp); }我原来把textarea便签的name和id 都整成faultInfo.finfo 然后在Action中有faultInfo这个成员变量,也不行
求大神指点
|
作者: 输不起, 发布日期: 2012-12-15 18:11:47 |
回复 |