javaweb的这个jsp界面input输入的内容,为什么无法保存到item中?
<%@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 © 2014
</div>
</html>
java java-web JSP spring springMVC
多多良小傘
9 years, 2 months ago