前后台 传值问题 一
来源:互联网 发布:淘宝企业店 编辑:程序博客网 时间:2024/06/11 06:12
页面:
<div align="left">
<html:select property="productLine" styleClass="productNode" styleId="productLine">
<html:option value=""></html:option>
<html:options collection="product_lineList" property="ITEM_ID" labelProperty="ITEM_NAME" />
</html:select>
</div>
<div align="left">
<html:select property="productFamily" styleClass="productNode" styleId="productFamily">
<html:option value=""></html:option>
<html:options collection="product_familyList" property="ITEM_ID" labelProperty="ITEM_NAME" />
</html:select></div>
<div align="left">
<html:select property="product" styleClass="productNode" styleId="product">
<html:option value=""></html:option>
<html:options collection="productList" property="ITEM_ID" labelProperty="ITEM_NAME" />
</html:select></div>
<input name="checker"id="checker" type="text" value="${checker}" class="id_ldap" size="100" />
Action从SESSION中取值问题:
String lineId = request.getParameter("productLine");
String familyId = request.getParameter("productFamily");
String productId = request.getParameter("product");
String checker = request.getParameter("checker");
if (null == checker || "".equals(checker) || "null".equalsIgnoreCase(checker.trim())){
checker = "";
}
if (null == lineId || "".equals(lineId) || "null".equalsIgnoreCase(lineId.trim())){
lineId = "";
}
if (null == familyId || "".equals(familyId) || "null".equalsIgnoreCase(familyId.trim())){
familyId = "";
}
if (null == productId || "".equals(productId) || "null".equalsIgnoreCase(productId.trim())){
productId = "";
}
- 前后台 传值问题 一
- 前后台传换行符的问题
- 前后台编码问题
- SpringMvc 前后台list传值应用
- Linux程序前后台问题
- linux 中前后台问题
- 前后台中文乱码问题
- angularJS中chekbox选中状态前后台交互传值和查看回值问题
- 页面之间传递值,mvc参数问题(前后台)
- jsp 前后台值传递
- 前后台交互积累(一)
- 前后台编码格式转换问题
- 关于 codeigniter 前后台目录搭建问题
- 关于前后台汉字乱码问题
- 2016-6-25 前后台交互问题
- Spring解决前后台乱码问题
- Cookie前后台使用乱码问题
- 前后台数据交互编码问题
- servlet原理详解
- 多模式匹配--AC自动机算法
- Silverlight实战示例总结(兼对Object类型绑定的处理)
- 2011.9.29
- 9. 11. 27. 写与读自己封装ArrayList implements the empty Serializable interface
- 前后台 传值问题 一
- 前后台传值问题 二
- Struts2源码阅读--请求流程
- 9. 11. 30. 从asList到toArray转换 -Convert a List (ArrayList) to an Array with zero length array
- 修改oracle字符编码
- 配置主键自动增长
- JVM垃圾收集器异同
- Xcode修改生成的源文件版权信息,作者和公司名称__MyCompanyName__
- 一道概率题