在jsp中用表格显示Oracle中数据
我这样写为什么不能在jsp页面中显示数据,上代码:
jsp:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page import="java.util.ArrayList"%>
<%@ page import="com.bean.list.ListBean"%>
<%@ page import="com.common.SessionBean" %>
<%
@SuppressWarnings("unchecked")
ArrayList<ListBean> list = (ArrayList<ListBean>)session.getAttribute("StartList");
String path = request.getContextPath();
SessionBean sessionBean = (SessionBean)session.getAttribute("SessionBean");
ListBean bean = null;
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
<meta http-equiv="description" content="This is my page" />
<link rel="stylesheet" type="text/css" href="<%=path %>/css/base.css" />
<script type="text/javascript" src="${pageContext.request.contextPath}/common/js/json2.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/common/js/common.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/common/js/messageControl.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/common/js/prototype-1.6.0.3.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/common/js/control.js"></script>
<script language="javascript">
window.onload=function(){
var url = 'ajax_adminListAction.action';
var params = {
command : "LoadMenu"
};
var myAjax = new Ajax.Request(
url,
{method:'post',parameters:params,onComplete:adminList_onComplete,onException:fun_exception,asynchronous:false});
}
function adminList_onComplete(request){
window.close();
}
function adminDel(USERID)
{
if(confirm('您确定删除吗?'))
{
window.location.href="<%=path %>/adminDel.action?USERID="+USERID;
}
}
function adminAdd()
{
var url="<%=path %>/admin/index/adminAdd.jsp";
//var n="";
//var w="480px";
//var h="500px";
//var s="resizable:no;help:no;status:no;scroll:yes";
//openWin(url,n,w,h,s);
window.location.href=url;
}
</script>
</head>
<body lef