Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ultradev JSP tutorial

Status
Not open for further replies.

tomjo11

Technical User
May 24, 2001
1
0
0
GB
Hi I have a problem. Can somebody help me. I have done the jsp tutorial in Ultradev 4 and cannot diplay the detail page. I get an error saying no data found. Everything else works besides that.
 
What page r u testing? the listings? Are u genrating asp, jsp o cf?
 
I'm having this problem too. Has anyone successfully done a troubleshoot on it for you?
 
Ok, I'll attempt to paste below. thanks.

<%@page language=&quot;java&quot; import=&quot;java.sql.*&quot;%>
<%@ include file=&quot;Connections/connCompassTravel.jsp&quot; %>
<%
Driver DriverDetails = (Driver)Class.forName(MM_connCompassTravel_DRIVER).newInstance();
Connection ConnDetails = DriverManager.getConnection(MM_connCompassTravel_STRING,MM_connCompassTravel_USERNAME,MM_connCompassTravel_PASSWORD);
PreparedStatement StatementDetails = ConnDetails.prepareStatement(&quot;SELECT * FROM EMPLOYEES&quot;);
ResultSet Details = StatementDetails.executeQuery();
boolean Details_isEmpty = !Details.next();
boolean Details_hasData = !Details_isEmpty;
Object Details_data;
int Details_numRows = 0;
%>
<%
// *** Recordset Stats, Move To Record, and Go To Record: declare stats variables

int Details_first = 1;
int Details_last = 1;
int Details_total = -1;

if (Details_isEmpty) {
Details_total = Details_first = Details_last = 0;
}

//set the number of rows displayed on this page
if (Details_numRows == 0) {
Details_numRows = 1;
}
%>
<% String MM_paramName = &quot;&quot;; %>
<%
// *** Move To Record and Go To Record: declare variables

ResultSet MM_rs = Details;
int MM_rsCount = Details_total;
int MM_size = Details_numRows;
String MM_uniqueCol = &quot;EMPLOYEEID&quot;;
MM_paramName = &quot;id&quot;;
int MM_offset = 0;
boolean MM_atTotal = false;
boolean MM_paramIsDefined = (MM_paramName.length() != 0 && request.getParameter(MM_paramName) != null);
%>
<%
// *** Move To Specific Record: handle detail parameter

if (MM_paramIsDefined && MM_rsCount != 0) {

// get the value of the parameter
String param = request.getParameter(MM_paramName);

// find the record with the unique column value equal to the parameter value
String colVal;
while (Details_hasData) {
colVal = ((MM_rs.getObject(MM_uniqueCol)!=null)?MM_rs.getObject(MM_uniqueCol).toString():&quot;&quot;);
if (colVal.equals(param)) break;
Details_hasData = MM_rs.next();
MM_offset++;
}

// if not found, set the number of records and reset the cursor
if (!Details_hasData) {
if (MM_rsCount < 0) MM_rsCount = MM_offset;
if (MM_size < 0 || MM_size > MM_rsCount) MM_size = MM_rsCount;
MM_offset = 0;

// reset the cursor to the beginning
Details.close();
Details = StatementDetails.executeQuery();
Details_hasData = Details.next();
MM_rs = Details;
}
}
%>
<%
// *** Move To Record: if we dont know the record count, check the display range

if (MM_rsCount == -1) {

// walk to the end of the display range for this page
int i;
for (i=MM_offset; Details_hasData && (MM_size < 0 || i < MM_offset + MM_size); i++) {
Details_hasData = MM_rs.next();
}

// if we walked off the end of the recordset, set MM_rsCount and MM_size
if (!Details_hasData) {
MM_rsCount = i;
if (MM_size < 0 || MM_size > MM_rsCount) MM_size = MM_rsCount;
}

// if we walked off the end, set the offset based on page size
if (!Details_hasData && !MM_paramIsDefined) {
if (MM_offset > MM_rsCount - MM_size || MM_offset == -1) { //check if past end or last
if (MM_rsCount % MM_size != 0) //last page has less records than MM_size
MM_offset = MM_rsCount - MM_rsCount % MM_size;
else
MM_offset = MM_rsCount - MM_size;
}
}

// reset the cursor to the beginning
Details.close();
Details = StatementDetails.executeQuery();
Details_hasData = Details.next();
MM_rs = Details;

// move the cursor to the selected record
for (i=0; Details_hasData && i < MM_offset; i++) {
Details_hasData = MM_rs.next();
}
}
%>
<%
// *** Move To Record: update recordset stats

// set the first and last displayed record
Details_first = MM_offset + 1;
Details_last = MM_offset + MM_size;
if (MM_rsCount != -1) {
Details_first = Math.min(Details_first, MM_rsCount);
Details_last = Math.min(Details_last, MM_rsCount);
}

// set the boolean used by hide region to check if we are on the last record
MM_atTotal = (MM_rsCount != -1 && MM_offset + MM_size >= MM_rsCount);
%>
<html>
<head>
<title>Details about the employee</title>
<link rel=&quot;stylesheet&quot; href=&quot;master.css&quot;>
</head>
<body bgcolor=&quot;#FFFFFF&quot; topmargin=0 leftmargin=0 marginwidth=0 marginheight=0 background=&quot;images/bkg_detail.gif&quot; onLoad=&quot;&quot;>
<FORM>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD VALIGN=TOP ALIGN=LEFT>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD VALIGN=TOP ALIGN=LEFT><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=481 HEIGHT=55></TD>
<TD VALIGN=TOP ALIGN=LEFT><img src=&quot;images/mast_topimage.jpg&quot; width=&quot;279&quot; height=&quot;55&quot;></TD>
</TR>
</TABLE>
</TD>
</TR>
<TR>
<TD VALIGN=TOP ALIGN=LEFT><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=10 HEIGHT=20></TD>
</TR>
<TR>
<TD VALIGN=TOP ALIGN=LEFT>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD VALIGN=TOP ALIGN=LEFT><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=278 HEIGHT=60><BR>
<img src=&quot;images/detail_title.gif&quot; width=&quot;221&quot; height=&quot;18&quot;></TD>
<TD VALIGN=TOP ALIGN=LEFT><img src=&quot;images/mast_topimages.jpg&quot; width=&quot;461&quot; height=&quot;49&quot;><BR>
<img src=&quot;images/mast_discovering.gif&quot; width=&quot;284&quot; height=&quot;22&quot;></TD>
</TR>
</TABLE>
</TD>
</TR>
<TR>
<TD VALIGN=TOP ALIGN=LEFT><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=80 HEIGHT=20></TD>
</TR>
<TR>
<TD VALIGN=TOP ALIGN=LEFT>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD VALIGN=TOP ALIGN=LEFT><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=95 HEIGHT=353></TD>
<TD VALIGN=TOP ALIGN=LEFT>
<table border=0 cellpadding=0 cellspacing=0 width=455>
<tr>
<td valign=TOP align=LEFT colspan=3 BGCOLOR=&quot;#993300&quot;><img src=&quot;images/spacer_brown.gif&quot; width=455 height=1></td>
</tr>
<tr>
<td valign=TOP align=LEFT width=1 bgcolor=&quot;#993300&quot;><img src=&quot;images/spacer_brown.gif&quot; width=1 height=23></td>
<td valign=MIDDLE align=RIGHT width=453 bgcolor=&quot;#006699&quot; class=&quot;username&quot;><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=446 HEIGHT=2><BR>
<%=(((Details_data = Details.getObject(&quot;LASTNAME&quot;))==null || Details.wasNull())?&quot;&quot;:Details_data)%>, <%=(((Details_data = Details.getObject(&quot;FIRSTNAME&quot;))==null || Details.wasNull())?&quot;&quot;:Details_data)%>&nbsp;<IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=5 HEIGHT=2><BR>
<IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=446 HEIGHT=2></td>
<td valign=TOP align=RIGHT width=1 bgcolor=&quot;#993300&quot;><img src=&quot;images/spacer_brown.gif&quot; width=1 height=23></td>
</tr>
<tr>
<td valign=TOP align=LEFT colspan=3 BGCOLOR=&quot;#993300&quot;><img src=&quot;images/spacer_brown.gif&quot; width=455 height=1></td>
</tr>
<tr>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=1 BGCOLOR=&quot;#993300&quot;><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=1 HEIGHT=1></TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=453 BGCOLOR=&quot;#FFE5B2&quot;>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=453>
<TR>
<TD VALIGN=MIDDLE ALIGN=CENTER WIDTH=168><img src=&quot;images/spacer_clear.gif&quot; width=168 height=2><br>
<table border=0 cellpadding=0 cellspacing=0 width=155>
<tr>
<td valign=TOP align=LEFT><img src=&quot;images/text_photoid.gif&quot; width=&quot;63&quot; height=&quot;16&quot;><BR>
<IMG SRC=&quot;images/<%=(((Details_data = Details.getObject(&quot;PHOTO&quot;))==null || Details.wasNull())?&quot;&quot;:Details_data)%>&quot; WIDTH=&quot;158&quot; HEIGHT=&quot;197&quot;></td>
</tr>
</table>
</TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=1 BGCOLOR=&quot;#993300&quot;><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=1 HEIGHT=10></TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=286>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=284>
<TR>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=128><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=128 HEIGHT=3></TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=1 BGCOLOR=&quot;#993300&quot;><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=1 HEIGHT=3></TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=155><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=155 HEIGHT=8></TD>
</TR>
<TR>
<TD VALIGN=TOP ALIGN=LEFT><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=128 HEIGHT=1></TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=1 BGCOLOR=&quot;#993300&quot;><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=1 HEIGHT=1></TD>
<TD VALIGN=TOP ALIGN=LEFT><IMG SRC=&quot;images/spacer_brown.gif&quot; WIDTH=155 HEIGHT=1></TD>
</TR>
<TR>
<TD VALIGN=MIDDLE ALIGN=RIGHT WIDTH=128>&nbsp;</TD>
<TD VALIGN=MIDDLE ALIGN=LEFT WIDTH=1 BGCOLOR=&quot;#993300&quot;><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=1 HEIGHT=10></TD>
<TD VALIGN=MIDDLE ALIGN=LEFT class=&quot;detaillabels&quot; bgcolor=&quot;#FFCC66&quot;><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=10 HEIGHT=2></TD>
</TR>
<TR>
<TD VALIGN=TOP ALIGN=LEFT><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=128 HEIGHT=1></TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=1 BGCOLOR=&quot;#993300&quot;><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=1 HEIGHT=1></TD>
<TD VALIGN=TOP ALIGN=LEFT><IMG SRC=&quot;images/spacer_brown.gif&quot; WIDTH=155 HEIGHT=1></TD>
</TR>
<TR>
<TD VALIGN=MIDDLE ALIGN=RIGHT WIDTH=128><IMG SRC=&quot;images/label_alttel.gif&quot; width=&quot;51&quot; height=&quot;10&quot;></TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=1 BGCOLOR=&quot;#993300&quot;><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=1 HEIGHT=1></TD>
<TD VALIGN=MIDDLE ALIGN=LEFT class=&quot;detaillabels&quot;><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=10 HEIGHT=8><%=(((Details_data = Details.getObject(&quot;PHONE&quot;))==null || Details.wasNull())?&quot;&quot;:Details_data)%></TD>
</TR>
<TR>
<TD VALIGN=TOP ALIGN=LEFT><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=128 HEIGHT=1></TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=1 BGCOLOR=&quot;#993300&quot;><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=1 HEIGHT=1></TD>
<TD VALIGN=TOP ALIGN=LEFT><IMG SRC=&quot;images/spacer_brown.gif&quot; WIDTH=155 HEIGHT=1></TD>
</TR>
<TR>
<TD VALIGN=MIDDLE ALIGN=RIGHT WIDTH=128>&nbsp;</TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=1 BGCOLOR=&quot;#993300&quot;><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=1 HEIGHT=1></TD>
<TD VALIGN=MIDDLE ALIGN=LEFT class=&quot;detaillabels&quot; bgcolor=&quot;#FFCC66&quot;><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=10 HEIGHT=2>&nbsp;</TD>
</TR>
<TR>
<TD VALIGN=TOP ALIGN=LEFT><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=128 HEIGHT=1></TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=1 BGCOLOR=&quot;#993300&quot;><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=1 HEIGHT=1></TD>
<TD VALIGN=TOP ALIGN=LEFT><IMG SRC=&quot;images/spacer_brown.gif&quot; WIDTH=155 HEIGHT=1></TD>
</TR>
<TR>
<TD VALIGN=MIDDLE ALIGN=RIGHT WIDTH=128><IMG SRC=&quot;images/label_startdate.gif&quot; width=&quot;73&quot; height=&quot;11&quot;></TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=1 BGCOLOR=&quot;#993300&quot;><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=1 HEIGHT=1></TD>
<TD VALIGN=MIDDLE ALIGN=LEFT class=&quot;detaillabels&quot;><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=10 HEIGHT=2><%=(((Details_data = Details.getObject(&quot;STARTDATE&quot;))==null || Details.wasNull())?&quot;&quot;:Details_data)%></TD>
</TR>
<TR>
<TD VALIGN=TOP ALIGN=LEFT><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=128 HEIGHT=1></TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=1 BGCOLOR=&quot;#993300&quot;><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=1 HEIGHT=1></TD>
<TD VALIGN=TOP ALIGN=LEFT><IMG SRC=&quot;images/spacer_brown.gif&quot; WIDTH=155 HEIGHT=1></TD>
</TR>
<TR>
<TD VALIGN=MIDDLE ALIGN=RIGHT WIDTH=128 height=&quot;11&quot;><IMG SRC=&quot;images/label_department.gif&quot; width=&quot;80&quot; height=&quot;10&quot;></TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=1 BGCOLOR=&quot;#993300&quot; height=&quot;11&quot;><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=1 HEIGHT=1></TD>
<TD VALIGN=MIDDLE ALIGN=LEFT class=&quot;detaillabels&quot; bgcolor=&quot;#FFCC66&quot; height=&quot;11&quot;><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=10 HEIGHT=2><%=(((Details_data = Details.getObject(&quot;DEPARTMENT&quot;))==null || Details.wasNull())?&quot;&quot;:Details_data)%></TD>
</TR>
<TR>
<TD VALIGN=TOP ALIGN=LEFT><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=128 HEIGHT=1></TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=1 BGCOLOR=&quot;#993300&quot;><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=1 HEIGHT=1></TD>
<TD VALIGN=TOP ALIGN=LEFT><IMG SRC=&quot;images/spacer_brown.gif&quot; WIDTH=155 HEIGHT=1></TD>
</TR>
<TR>
<TD VALIGN=MIDDLE ALIGN=RIGHT WIDTH=128><IMG SRC=&quot;images/label_ext.gif&quot; width=&quot;68&quot; height=&quot;11&quot;></TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=1 BGCOLOR=&quot;#993300&quot;><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=1 HEIGHT=1></TD>
<TD VALIGN=MIDDLE ALIGN=LEFT class=&quot;detaillabels&quot;><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=10 HEIGHT=2><%=(((Details_data = Details.getObject(&quot;EXTENSION&quot;))==null || Details.wasNull())?&quot;&quot;:Details_data)%></TD>
</TR>
<TR>
<TD VALIGN=TOP ALIGN=LEFT><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=128 HEIGHT=1></TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=1 BGCOLOR=&quot;#993300&quot;><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=1 HEIGHT=1></TD>
<TD VALIGN=TOP ALIGN=LEFT><IMG SRC=&quot;images/spacer_brown.gif&quot; WIDTH=155 HEIGHT=1></TD>
</TR>
<TR>
<TD VALIGN=MIDDLE ALIGN=RIGHT WIDTH=128><IMG SRC=&quot;images/label_email.gif&quot; width=&quot;45&quot; height=&quot;10&quot;></TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=1 BGCOLOR=&quot;#993300&quot;><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=1 HEIGHT=1></TD>
<TD VALIGN=MIDDLE ALIGN=LEFT class=&quot;detaillabels&quot; bgcolor=&quot;#FFCC66&quot;><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=10 HEIGHT=2><%=(((Details_data = Details.getObject(&quot;EMAIL&quot;))==null || Details.wasNull())?&quot;&quot;:Details_data)%></TD>
</TR>
<TR>
<TD VALIGN=TOP ALIGN=LEFT><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=128 HEIGHT=1></TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=1 BGCOLOR=&quot;#993300&quot;><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=1 HEIGHT=1></TD>
<TD VALIGN=TOP ALIGN=LEFT><IMG SRC=&quot;images/spacer_brown.gif&quot; WIDTH=155 HEIGHT=1></TD>
</TR>
<TR>
<TD VALIGN=TOP ALIGN=LEFT><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=128 HEIGHT=3></TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=1 BGCOLOR=&quot;#993300&quot;><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=1 HEIGHT=1></TD>
<TD VALIGN=TOP ALIGN=LEFT><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=155 HEIGHT=3></TD>
</TR>
<TR>
<TD VALIGN=TOP ALIGN=LEFT COLSPAN=3><IMG SRC=&quot;images/spacer_brown.gif&quot; WIDTH=284 HEIGHT=1></TD>
</TR>
<TR>
<TD VALIGN=TOP ALIGN=LEFT COLSPAN=3><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=284 HEIGHT=4></TD>
</TR>
<TR>
<TD VALIGN=MIDDLE ALIGN=CENTER COLSPAN=4>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=268>
<TR>
<TD VALIGN=TOP ALIGN=LEFT COLSPAN=3><IMG SRC=&quot;images/text_notes.gif&quot; WIDTH=&quot;51&quot; HEIGHT=&quot;16&quot;></TD>
</TR>
<TR>
<TD VALIGN=TOP ALIGN=LEFT COLSPAN=3 BGCOLOR=&quot;#993300&quot;><IMG SRC=&quot;images/spacer_brown.gif&quot; WIDTH=268 HEIGHT=1></TD>
</TR>
<TR BGCOLOR=&quot;#FFFFFF&quot;>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=1 BGCOLOR=&quot;#99330&quot;><IMG SRC=&quot;images/spacer_brown.gif&quot; WIDTH=1 HEIGHT=100></TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=266><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=266 HEIGHT=5><BR>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=250>
<TR>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=10><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=10 HEIGHT=2></TD>
<TD VALIGN=TOP ALIGN=LEFT class=&quot;normaltext&quot; WIDTH=240><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=240 HEIGHT=2></TD>
</TR>
<TR>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=10><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=10 HEIGHT=5></TD>
<TD VALIGN=TOP ALIGN=LEFT class=&quot;normaltext&quot; WIDTH=240><%=(((Details_data = Details.getObject(&quot;NOTES&quot;))==null || Details.wasNull())?&quot;&quot;:Details_data)%></TD>
</TR>
</TABLE>
<BR>
<IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=266 HEIGHT=5><BR>
</TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=1 BGCOLOR=&quot;#99330&quot;><IMG SRC=&quot;images/spacer_brown.gif&quot; WIDTH=1 HEIGHT=100></TD>
</TR>
<TR>
<TD VALIGN=TOP ALIGN=LEFT COLSPAN=3 BGCOLOR=&quot;#993300&quot;><IMG SRC=&quot;images/spacer_brown.gif&quot; WIDTH=268 HEIGHT=1></TD>
</TR>
</TABLE>
</TD>
</TR>
<TR>
<TD VALIGN=TOP ALIGN=LEFT COLSPAN=4><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=284 HEIGHT=4></TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=1 BGCOLOR=&quot;#993300&quot;><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=1 HEIGHT=1></TD>
</TR>
<tr>
<td valign=TOP align=LEFT colspan=3 BGCOLOR=&quot;#993300&quot;><img src=&quot;images/spacer_brown.gif&quot; width=455 height=1></td>
</tr>
<TR>
<TD VALIGN=TOP ALIGN=RIGHT COLSPAN=3> <IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=10 HEIGHT=3><BR>
<BR>
<IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=10 HEIGHT=3></td>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</TD>
</TR>
<TR>
<TD VALIGN=TOP ALIGN=LEFT COLSPAN=2><NOBR><IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=502 HEIGHT=14></NOBR><BR>
<IMG SRC=&quot;images/spacer_clear.gif&quot; WIDTH=10 HEIGHT=30></TD>
</TR>
</TABLE>
</FORM>
</body>
</html>
<%
Details.close();
ConnDetails.close();
%>
 
To append to the above with more info...I'm calling the file with the following url

Ther is not a problem with the DSN connection becaus it does work and brings up the first record if I just feed it.

without specifying the id (it by default brings up the 1st record).

Looking forward to your assessment.
Thanks
jd
 
[ul][li]Is the field you are trying to compare really called EMPLOYEEID?

[/li][li]Try at the point...

// find the record with the unique column value equal to the parameter value

...to output some values (like the currently searched record and the comparison value). You can paste the code below to achieve this (instead of the code that's already there and quite similar):

// find the record with the unique column value equal to the parameter value
String colVal;
%>Searching:<br><br><%
while (Details_hasData) {
colVal = ((MM_rs.getObject(MM_uniqueCol)!=null)?MM_rs.getObject(MM_uniqueCol).toString():&quot;&quot;);
%><%=colVal%> =? <%=param%><br><%
if (colVal.equals(param)) break;
%>no...<br><%
Details_hasData = MM_rs.next();
MM_offset++;
}
%>offset: <%=MM_offset%><%
[/li][/ul]

Don't know if this helps :~/
allow thyself to be the spark that lights the fire
haslo@haslo.ch - www.haslo.ch​
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top