The jsp interface input input to the java web, why not save to item?

110 5

<% @ 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. Finalization ("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 Answers

75 1

Because the value is wrong, it doesn't correspond to the entity.

...