<% IDPAgent idpAgent=IDPAgent.getInstance(session);
IUser user=idpAgent.getUser();
%>
<%
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", 0); //prevents caching at the proxy server String SoftWareType = request.getParameter("type");
int indexPage=0; //物理页号
int pageSize= 10;
int totalPage=0;
int totals=0;
try{
indexPage=Integer.valueOf(request.getParameter("indexPage")).intValue()-1; ////逻辑页号修正到物理页号
if (indexPage <= 0) indexPage =0;
pageSize=Integer.valueOf(request.getParameter("pageSize")).intValue(); //页的大小
if (pageSize <= 0 ) pageSize = 20 ;
}catch(Exception e){
}
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title></title>
<script language="JavaScript" type="text/JavaScript">
function maxImum(){
window.parent.aa.cols="0%,100%,*";
}
function minMum(){
window.parent.aa.cols="264,*";
}
function insertLessonStudent(){
document.form1.doAction.value='insert'
form1.submit();
alert("insert ok");
}
</script>
<script type="text/javascript">
function getValue(){
alert();
var boxes = document.getElementById("check");
var groupTypeId = new Array();
for (var i = 0; i < boxes.length; i++)
{
if (boxes[i].checked)
{
groupTypeId[i] = boxes[i].value;
alert(groupTypeId[i]);
}
}
}
</script>
<link rel='stylesheet' type='text/css' id='main_css' href='../../app/portal_style.css' />
<link href="../../app/site.css" rel="stylesheet" type="text/css">
<link type="text/css" rel="StyleSheet" href="../sortabletable/css/sortabletable.css" />
<script type="text/javascript" src="../sortabletable/js/sortabletable.js"></script>
<script type="text/javascript" src="../../js/window.js"></script>
<style type="text/css">
code {
font-size: 1em;
}/* extra rules for even and odd rows */
.even {
background: #eee;
}.odd {}
.style1 {color: #FF0000}
.style2 {color: #0033FF}
</style>
</head>
<BODY topmargin="5" leftmargin="4">
<div id="dwindow" style="position:absolute;background-color:#EBEBEB;cursor:hand;left:0px;top:0px;display:none" onMousedown="initializedrag(event)" onMouseup="stopdrag()" onSelectStart="return false">
<div align="right" style="background-image:url(../images/banquan.jpg)">
<img src="../images/max.gif" id="maxname" onClick="maximize()">
<img src="../images/close.gif" onClick="closeit()"></div>
<div id="dwindowcontent" style="height:100%">
<iframe id="cframe" src="" width=100% height=100%></iframe>
</div>
</div>
<form name="form1" action="/lessonStudentAction.do" method="post" enctype="multipart/form-data">
<input type="hidden" name="returnUrl" value="/common/lessonstudent/kaoqin.jsp?id=${param.id}" />
<common:form/>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" style="text-align:center">
<tr ><td class="portlet-titlebar-left"></td><td class="portlet-titlebar-center"><div class="portlet-titlebar-decoration"></div>
<div class="portlet-mode-container"><div class="portlet-mode-minimized" onClick="minMum()" title="最小化"></div><div class="portlet-mode-maximized" onClick="maxImum()" title="最大化"></div></div></td><td class="portlet-titlebar-right"></td></tr><tr><td class="portlet-content-left"></td>
<td valign="top" class="portlet-body">
<div class="mytable">
<!--内容-->
<table id="table-1" width="100%" border="1" cellpadding="3" cellspacing="0" bordercolor="#C5C5C5" style="border-collapse: collapse">
<thead>
<tr bgcolor="#EBEBEB">
<td width="35">序号</td>
<td>学号</td>
<td width="80">姓名</td>
<td>班级名称</td>
<td width="66">课程名称</td>
<td>执教老师</td>
<td width="60">考勤</td>
<td>课程评分</td>
<td>学分</td>
<td width="133">时间</td>
</tr>
</thead>
<%int count=1;%>
<app:ListLessonStudentByIdTag id="lessonEntity" curriculaId="${param.id}" indexPage="<%=indexPage%>" pageSize="<%=pageSize%>" filter="true" order="true">
<tr id="XX"onMouseOut="this.style.backgroundColor = ''"
onMouseOver="this.style.backgroundColor = '#E5F0FF'" style="cursor:pointer ">
<td><%=count++%></td>
<td>${lessonEntity.studentNum}</td>
<td>${lessonEntity.personName}</td>
<td>${lessonEntity.classesName}</td>
<app:GetCurriculaTag id="entity" entityId="${lessonEntity.curriculaId}" >
<td >${entity.curriculaName}</td>
<app:GetPersonTag id="personEntity" entityId="${entity.personId}" >
<td>${personEntity.personName}</td>
</app:GetPersonTag>
</app:GetCurriculaTag>
<td align="center">
<input type="checkbox" id="check" checked="checked" value="1">
<input type="hidden" name="studentId" value="${lessonEntity.studentId}"/>
<input type="hidden" name="absence" value=""/>
<input type="hidden" name="appeared" value="1"/>
</td>
<td>
<input type="text" size="8" border="0" with="7"/>
</td>
<td>
<input type="text" size="8" border="0" with="7"/>
</td>
<td>
<input type="text" size="20" border="0" width="7" format="yyyy-MM-dd HH:mm:ss" value="<%=DateTool.getCurrentDay(DateTool.DATE_FORMAT_YMDHMS)%>" readonly="true" />
</td>
</tr>
</app:ListLessonStudentByIdTag>
<tr>
<td align="center" colspan="7">
<input type="button" name="Submit" value="保存" class="button" onClick="insertLessonStudent()"/>
<input class="button" name="cancelButton" type="button" id="back" onClick="window.history.go(-1)" value="返回">
</td>
</tr>
</table>
</table>
</td>
<td class="portlet-content-right"></td></tr><tr><td class="portlet-footer-left"></td><td class="portlet-footer-center"></td><td class="portlet-footer-right"></td></tr>
</form>
</BODY>
</html>我页面上的数值为什么提交到Action中全是空的,请各位大侠帮忙看看
IUser user=idpAgent.getUser();
%>
<%
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", 0); //prevents caching at the proxy server String SoftWareType = request.getParameter("type");
int indexPage=0; //物理页号
int pageSize= 10;
int totalPage=0;
int totals=0;
try{
indexPage=Integer.valueOf(request.getParameter("indexPage")).intValue()-1; ////逻辑页号修正到物理页号
if (indexPage <= 0) indexPage =0;
pageSize=Integer.valueOf(request.getParameter("pageSize")).intValue(); //页的大小
if (pageSize <= 0 ) pageSize = 20 ;
}catch(Exception e){
}
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title></title>
<script language="JavaScript" type="text/JavaScript">
function maxImum(){
window.parent.aa.cols="0%,100%,*";
}
function minMum(){
window.parent.aa.cols="264,*";
}
function insertLessonStudent(){
document.form1.doAction.value='insert'
form1.submit();
alert("insert ok");
}
</script>
<script type="text/javascript">
function getValue(){
alert();
var boxes = document.getElementById("check");
var groupTypeId = new Array();
for (var i = 0; i < boxes.length; i++)
{
if (boxes[i].checked)
{
groupTypeId[i] = boxes[i].value;
alert(groupTypeId[i]);
}
}
}
</script>
<link rel='stylesheet' type='text/css' id='main_css' href='../../app/portal_style.css' />
<link href="../../app/site.css" rel="stylesheet" type="text/css">
<link type="text/css" rel="StyleSheet" href="../sortabletable/css/sortabletable.css" />
<script type="text/javascript" src="../sortabletable/js/sortabletable.js"></script>
<script type="text/javascript" src="../../js/window.js"></script>
<style type="text/css">
code {
font-size: 1em;
}/* extra rules for even and odd rows */
.even {
background: #eee;
}.odd {}
.style1 {color: #FF0000}
.style2 {color: #0033FF}
</style>
</head>
<BODY topmargin="5" leftmargin="4">
<div id="dwindow" style="position:absolute;background-color:#EBEBEB;cursor:hand;left:0px;top:0px;display:none" onMousedown="initializedrag(event)" onMouseup="stopdrag()" onSelectStart="return false">
<div align="right" style="background-image:url(../images/banquan.jpg)">
<img src="../images/max.gif" id="maxname" onClick="maximize()">
<img src="../images/close.gif" onClick="closeit()"></div>
<div id="dwindowcontent" style="height:100%">
<iframe id="cframe" src="" width=100% height=100%></iframe>
</div>
</div>
<form name="form1" action="/lessonStudentAction.do" method="post" enctype="multipart/form-data">
<input type="hidden" name="returnUrl" value="/common/lessonstudent/kaoqin.jsp?id=${param.id}" />
<common:form/>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" style="text-align:center">
<tr ><td class="portlet-titlebar-left"></td><td class="portlet-titlebar-center"><div class="portlet-titlebar-decoration"></div>
<div class="portlet-mode-container"><div class="portlet-mode-minimized" onClick="minMum()" title="最小化"></div><div class="portlet-mode-maximized" onClick="maxImum()" title="最大化"></div></div></td><td class="portlet-titlebar-right"></td></tr><tr><td class="portlet-content-left"></td>
<td valign="top" class="portlet-body">
<div class="mytable">
<!--内容-->
<table id="table-1" width="100%" border="1" cellpadding="3" cellspacing="0" bordercolor="#C5C5C5" style="border-collapse: collapse">
<thead>
<tr bgcolor="#EBEBEB">
<td width="35">序号</td>
<td>学号</td>
<td width="80">姓名</td>
<td>班级名称</td>
<td width="66">课程名称</td>
<td>执教老师</td>
<td width="60">考勤</td>
<td>课程评分</td>
<td>学分</td>
<td width="133">时间</td>
</tr>
</thead>
<%int count=1;%>
<app:ListLessonStudentByIdTag id="lessonEntity" curriculaId="${param.id}" indexPage="<%=indexPage%>" pageSize="<%=pageSize%>" filter="true" order="true">
<tr id="XX"onMouseOut="this.style.backgroundColor = ''"
onMouseOver="this.style.backgroundColor = '#E5F0FF'" style="cursor:pointer ">
<td><%=count++%></td>
<td>${lessonEntity.studentNum}</td>
<td>${lessonEntity.personName}</td>
<td>${lessonEntity.classesName}</td>
<app:GetCurriculaTag id="entity" entityId="${lessonEntity.curriculaId}" >
<td >${entity.curriculaName}</td>
<app:GetPersonTag id="personEntity" entityId="${entity.personId}" >
<td>${personEntity.personName}</td>
</app:GetPersonTag>
</app:GetCurriculaTag>
<td align="center">
<input type="checkbox" id="check" checked="checked" value="1">
<input type="hidden" name="studentId" value="${lessonEntity.studentId}"/>
<input type="hidden" name="absence" value=""/>
<input type="hidden" name="appeared" value="1"/>
</td>
<td>
<input type="text" size="8" border="0" with="7"/>
</td>
<td>
<input type="text" size="8" border="0" with="7"/>
</td>
<td>
<input type="text" size="20" border="0" width="7" format="yyyy-MM-dd HH:mm:ss" value="<%=DateTool.getCurrentDay(DateTool.DATE_FORMAT_YMDHMS)%>" readonly="true" />
</td>
</tr>
</app:ListLessonStudentByIdTag>
<tr>
<td align="center" colspan="7">
<input type="button" name="Submit" value="保存" class="button" onClick="insertLessonStudent()"/>
<input class="button" name="cancelButton" type="button" id="back" onClick="window.history.go(-1)" value="返回">
</td>
</tr>
</table>
</table>
</td>
<td class="portlet-content-right"></td></tr><tr><td class="portlet-footer-left"></td><td class="portlet-footer-center"></td><td class="portlet-footer-right"></td></tr>
</form>
</BODY>
</html>我页面上的数值为什么提交到Action中全是空的,请各位大侠帮忙看看
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货