I can not View My Grid WHAY?
The code is as like but i cna not see any thing
<%@page import="java.util.*,sun.jdbc.rowset.*;" contentType="text/html; charset=UTF-8"%>
<%@include file="/eaf/as_v1/check_session.jsp"%>
<jsp:useBean id="adminBean" class="CdfBean.AdministratorBean"/>
<jsp:useBean id="inqBean" class="CdfBean.InquiryBean"/>
<!--<jsp:useBean id="ccBean" scope="session" class="CdfBean.HUCCBean"/>-->
<%
CachedRowSet usr = new CachedRowSet();
usr = adminBean.getAlluserinof();
int intRowSize = 0;
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!--link rel="stylesheet" href="/ems/css/ems.css" type="text/css"-->
<link rel="stylesheet" href="../css/ems.css" type="text/css">
<title>mGATE</title>
<STYLE>
.title1 {
BACKGROUND-POSITION: right top; PADDING-LEFT: 10px; FONT-WEIGHT: bold; FONT-SIZE: 12px; BACKGROUND-IMAGE: url(images/title1.gif); TEXT-TRANSFORM: lowercase; COLOR: #7c8184; LINE-HEIGHT: 16px; BACKGROUND-REPEAT: no-repeat; FONT-STYLE: normal; FONT-FAMILY: verdana, arial, helvetica, sans-serif; HEIGHT: 25px; BACKGROUND-COLOR: #a4ceec
}
</STYLE>
<!-- ActiveWidgets stylesheet and scripts -->
<link href="runtime/styles/flat/grid.css" rel="stylesheet" type="text/css" ></link>
<script src="runtime/lib/grid.js"></script>
<!-- grid format -->
<style>
.active-controls-grid {height: 95%; font: menu;}
.active-selection-true, .active-selection-true .active-row-cell {
background-color: yellow!important;
}
.active-column-0 {width: 80px; text-align: center;}
.active-column-1 {width: 250px; text-align: center;}
.active-column-2 {width: 80px; text-align: center;}
.active-column-3 {width: 80px; text-align: center;}
.active-column-4 {width: 80px; text-align: center;}
.active-grid-column {border-right: 1px solid threedlightshadow;}
.active-grid-row {border-bottom: 1px solid threedlightshadow;}
</style>
</head>
<body leftmargin=0 topmargin=2>
<table width="816" height="599" border="2" cellpadding="2" cellspacing="2" bordercolor="#ACB9D1">
<tr>
<td bgcolor="#A3B2CC"><div align="center"><strong>View Users </strong></div></td>
</tr>
<tr>
<td height="568" bordercolor="#A7B5CE">
<!-- grid data -->
<script>
var myData = [
<%
intRowSize = usr.size() ;
String strColor="black";
String strLinkColor = "blue";
String strSeverity = "";
while (usr.next())
{
%>
["<a href='add_update_user3.jsp?txtLoginID=<%=usr.getString("LOGIN_ID")%>' target='_parent'><%=usr.getString("LOGIN_ID")%></a>",
"<%=usr.getString("USER_NAME")%>",
"<%=usr.getString("STATUS")%>",
"<%=usr.getString("SUPERVISOR_NAME")%>",
"<%=usr.getString("SUPERVISOR_TEL")%>",
"<%=usr.getString("MOBILE_TEL")%>"
],
<%
}
%>
];
var myColumns = [
"Login Id", "User name","Status", "Supervisor Name", "Supervisor teliphone", "Mobile teliphone"
];
// create ActiveWidgets Grid javascript object
var obj = new Active.Controls.Grid;
// set number of rows/columns
obj.setRowProperty("count", <%=intRowSize%>);
obj.setColumnProperty("count", 6);
// provide cells and headers text
obj.setDataProperty("text", function(i, j){return myData[i][j]});
obj.setColumnProperty("text", function(i){return myColumns[i]});
// set headers width/height
obj.setRowHeaderWidth("28px");
obj.setColumnHeaderHeight("20px")
// allow multiple selection
//obj.setSelectionProperty("multiple", true);
// define action handler
// assign action handler to grid
//obj.setAction("selectionChanged", message2);
// write grid html to the page
document.write(obj);
</script> </td>
</tr>
</table>
</body>
</html>
<%@page import="java.util.*,sun.jdbc.rowset.*;" contentType="text/html; charset=UTF-8"%>
<%@include file="/eaf/as_v1/check_session.jsp"%>
<jsp:useBean id="adminBean" class="CdfBean.AdministratorBean"/>
<jsp:useBean id="inqBean" class="CdfBean.InquiryBean"/>
<!--<jsp:useBean id="ccBean" scope="session" class="CdfBean.HUCCBean"/>-->
<%
CachedRowSet usr = new CachedRowSet();
usr = adminBean.getAlluserinof();
int intRowSize = 0;
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!--link rel="stylesheet" href="/ems/css/ems.css" type="text/css"-->
<link rel="stylesheet" href="../css/ems.css" type="text/css">
<title>mGATE</title>
<STYLE>
.title1 {
BACKGROUND-POSITION: right top; PADDING-LEFT: 10px; FONT-WEIGHT: bold; FONT-SIZE: 12px; BACKGROUND-IMAGE: url(images/title1.gif); TEXT-TRANSFORM: lowercase; COLOR: #7c8184; LINE-HEIGHT: 16px; BACKGROUND-REPEAT: no-repeat; FONT-STYLE: normal; FONT-FAMILY: verdana, arial, helvetica, sans-serif; HEIGHT: 25px; BACKGROUND-COLOR: #a4ceec
}
</STYLE>
<!-- ActiveWidgets stylesheet and scripts -->
<link href="runtime/styles/flat/grid.css" rel="stylesheet" type="text/css" ></link>
<script src="runtime/lib/grid.js"></script>
<!-- grid format -->
<style>
.active-controls-grid {height: 95%; font: menu;}
.active-selection-true, .active-selection-true .active-row-cell {
background-color: yellow!important;
}
.active-column-0 {width: 80px; text-align: center;}
.active-column-1 {width: 250px; text-align: center;}
.active-column-2 {width: 80px; text-align: center;}
.active-column-3 {width: 80px; text-align: center;}
.active-column-4 {width: 80px; text-align: center;}
.active-grid-column {border-right: 1px solid threedlightshadow;}
.active-grid-row {border-bottom: 1px solid threedlightshadow;}
</style>
</head>
<body leftmargin=0 topmargin=2>
<table width="816" height="599" border="2" cellpadding="2" cellspacing="2" bordercolor="#ACB9D1">
<tr>
<td bgcolor="#A3B2CC"><div align="center"><strong>View Users </strong></div></td>
</tr>
<tr>
<td height="568" bordercolor="#A7B5CE">
<!-- grid data -->
<script>
var myData = [
<%
intRowSize = usr.size() ;
String strColor="black";
String strLinkColor = "blue";
String strSeverity = "";
while (usr.next())
{
%>
["<a href='add_update_user3.jsp?txtLoginID=<%=usr.getString("LOGIN_ID")%>' target='_parent'><%=usr.getString("LOGIN_ID")%></a>",
"<%=usr.getString("USER_NAME")%>",
"<%=usr.getString("STATUS")%>",
"<%=usr.getString("SUPERVISOR_NAME")%>",
"<%=usr.getString("SUPERVISOR_TEL")%>",
"<%=usr.getString("MOBILE_TEL")%>"
],
<%
}
%>
];
var myColumns = [
"Login Id", "User name","Status", "Supervisor Name", "Supervisor teliphone", "Mobile teliphone"
];
// create ActiveWidgets Grid javascript object
var obj = new Active.Controls.Grid;
// set number of rows/columns
obj.setRowProperty("count", <%=intRowSize%>);
obj.setColumnProperty("count", 6);
// provide cells and headers text
obj.setDataProperty("text", function(i, j){return myData[i][j]});
obj.setColumnProperty("text", function(i){return myColumns[i]});
// set headers width/height
obj.setRowHeaderWidth("28px");
obj.setColumnHeaderHeight("20px")
// allow multiple selection
//obj.setSelectionProperty("multiple", true);
// define action handler
// assign action handler to grid
//obj.setAction("selectionChanged", message2);
// write grid html to the page
document.write(obj);
</script> </td>
</tr>
</table>
</body>
</html>
Abdul Rehman MOBILY
March 13,