Advertisement
Advertisement
| 02.03.2005 at 08:01AM PST, ID: 21300406 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
|
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
| Microsoft |
| Apple |
| Internet |
| Gamers |
| Digital Living |
| Virus & Spyware |
| Hardware |
| Software |
| ITPro |
| Developer |
| Storage |
| OS |
| Database |
| Security |
| Programming |
| Web Development |
| Networking |
| Other |
| Community Support |
| 02.03.2005 at 08:25AM PST, ID: 13215974 |
| 02.03.2005 at 09:39AM PST, ID: 13216854 |
| 02.03.2005 at 10:14AM PST, ID: 13217234 |
| 02.17.2005 at 10:56PM PST, ID: 13343102 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: |
<%@page import="java.util.*"%>
<%@page import="java.sql.*"%>
<%@page import="java.sql.Statement"%>
<%@page import="javax.sql.DataSource"%>
<%@page import="javax.naming.*"%>
<%@page import="eform.beans.*"%>
<%@page import="java.text.*"%>
<%@page import="java.util.Calendar"%>
<%java.util.Properties parms = new java.util.Properties();
parms.setProperty(Context.INITIAL_CONTEXT_FACTORY,"com.ibm.websphere.naming.WsnInitialContextFactory");
Context ctx = new javax.naming.InitialContext(parms);
DataSource ds = (javax.sql.DataSource) ctx.lookup("jdbc/STAFFDBS");
Connection con = ds.getConnection();
Statement stmt = con.createStatement();
String sql = "select date,purpose,status,rid from room_booking ";
ResultSet rs = stmt.executeQuery(sql);
String date;
String purpose;
String status;
int rid;
Vector records = new Vector();
while (rs.next()){
date = rs.getString("DATE");
purpose = rs.getString("PURPOSE");
status = rs.getString("STATUS");
rid = rs.getInt("RID");
JoRoomBookingBean bean = new JoRoomBookingBean();
bean.setDate(date);
bean.setPurpose(purpose);
bean.setStatus(status);
bean.setRid(rid);
records.addElement(bean);
}
%>
<html>
<head>
<title>ROOM BOOKING LIST</title>
</head>
<body>
<table>
<tr bgcolor="CCFFFFF">
<td>date</td>
<td>purpose</td>
<td>status</td>
<td>rid</td>
</tr>
<%for (int i = 0; i < records.size(); i++) {
JoRoomBookingBean bean = (JoRoomBookingBean) records.elementAt(i);%>
<tr bgcolor="FFFFFCC">
<td><%=bean.getDate()%></td>
<td><%=bean.getPurpose()%></td>
<td><%=bean.getStatus()%></td>
<td><%=bean.getRid()%></td>
</tr>
<%}%>
</table>
Total Records:
<%=records.size()%>
</body>
</html>
|