日期:2014-05-19  浏览次数:20815 次

请高手指教servlet
我的jsp页面接收不了servlet的发来的数据
不知道哪出问题了
以下是
userModify.jsp


<%@ page language="java" import="java.util.*,zls.market.entity.smUser" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <title>修改用户</title>
<link type="text/css" rel="stylesheet" href="css/style.css" />
<script type="text/javascript" src="./js/user.js"></script>
</head>
<%--<body onload="setbodydisabled()">

--%>
<body><div class="main">
  <c:set var="user" value="${sessionScope.modifyuser}"></c:set>
<form method="post" >
<input name="option" type="hidden" value="<%=request.getContextPath()%>/UserServlet?option=delete_user" class="input-text" >
<div class="content">
<table class="box">
<tr>
<td class="field">用户编号:</td>
<td><input type="text" name="id" id="textfield" class="text"/ value="${user.id}"> <font color="red">*</font></td>
</tr>
<tr>
<td class="field">用户名称:</td>
<td><input type="text" name="username" class="text" id="textfield2" value="${user.loginname } "/><font color="red">*</font></td>
</tr>
<tr>
<td class="field">用户性别:</td>
<td><select name="sex" id="select">
<c:if test="${user.sex=='女'}">
  <option value="女" selected=true>女</option></c:if>
  <c:if test="${user.sex=='男'}">
  <option value="男" selected=true>男</option></c:if>
  </select>
  </td>
</tr>
<tr>
<td class="field">用户年龄:</td>
<td><input type="text" name="age" class="text" id="textfield2" value="${user.age }"/> <font color="red">*</font></td>
</tr>
<tr>
<td class="field">用户电话:</td>
<td><input type="text" name="mobile" class="text" id="textfield2" value="${user.tel }"/> <font color="red">*</font></td>
</tr>
<tr>
<td class="field">用户地址:</td>
<td><textarea name="address" id="textarea" class="text" cols="45" rows="5">${user.address }</textarea></td>
</tr>
<tr>
<td class="field">用户权限:</td>
<td>
<c:choose>
<c:when test="${user.role=='0' }">
<input type="radio" name="auth"