为了账号安全,请及时绑定邮箱和手机立即绑定

javaweb的这个jsp界面input输入的内容,为什么无法保存到item中?

javaweb的这个jsp界面input输入的内容,为什么无法保存到item中?

慕桂英546537 2019-02-21 03:23:10
<%@page import="com.qdzq.zzpt.vo.Page"%><%@page import="com.qdzq.zqbp.entity.*"%><%@page import="com.qdzq.utils.HtmlUtil"%><%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%><% String path = request.getContextPath(); String basePath = request.getScheme() + "://" request.getServerName() + ":" + request.getServerPort() path + "/"; ZqbpCommonSerlect item=(ZqbpCommonSerlect)request.getAttribute("item");%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> <head> <base href="<%=basePath%>"> <title>供应商档案</title> </head> <body > <div id="navTab" class="tabsPage"> <ul class="tabsMoreList"> </ul> <div class="pageContent"> <form method="post" id="deviceAddForm" action="<%=basePath %>admin/chanpin/edit.html?navTabId=supplier" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);"> <div class="tabs" currentIndex="0" eventType="click"> <div class="tabsHeader"> <div class="tabsHeaderContent"> <ul> <li> <a href="javascript:;"><span>基本信息</span> </a> </li> </ul> </div> </div> <div class="tabsContent" layoutH="73"> <div class="pageFormContent"> <p> <label> 供应商名称: </label> <input name="sup_name" type="text" size="30" value="<%=item.getSelectName() == null ? "" : item.getSelectName()%>" maxlength="50" class="required" /> </p> </div> <div class="pageFormContent" layoutH="250"> </div> </div> </div> <div class="formBar"> <ul> <li> <div class="buttonActive"> <div class="buttonContent"> <button type="submit"> 保存 </button> </div> </div> </li> <li> <div class="button"> <div class="buttonContent"> <a href="<%=basePath %>admin/device/index.html" target="navTab" rel="car">返回</a> </div> </div> </li> </ul> </div> </form> </div> </div> <div id="footer"> Copyright &copy; 2014 </div> </html>
查看完整描述

1 回答

?
交互式爱情

TA贡献1712条经验 获得超3个赞

因为那么的值写错了跟 实体的不对应

查看完整回答
反对 回复 2019-03-01
  • 1 回答
  • 0 关注
  • 558 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信