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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MX Dynamic List/Menu Doesn't Work!

Status
Not open for further replies.

sweetp

Technical User
Jan 9, 2002
35
US
I can't get Dynamic List/Menu to work. I'm using JSP and MX. I am using Dreamweaver's Server Behavior which generates the code below (for a dynamic list of Personnel) but it always fails and I get a "Data Not Found" error on my server.

Anybody know what's wrong? This is just Dreamweaver generated code! I didn't hand code anything!

Help!

<select name="select">
<%
while (personnel_hasData) {
%>
<option value="<%=((personnel.getObject("PersonnelID")!=null)?personnel.getObject("PersonnelID"):"")%>" <%=(((personnel.getObject("PersonnelID")).toString().equals(("Allen").toString()))?"SELECTED":"")%> ><%=((personnel.getObject("LastName")!=null)?personnel.getObject("LastName"):"")%></option>
<%
personnel_hasData = personnel.next();
}
personnel.close();
personnel = Statementpersonnel.executeQuery();
personnel_hasData = personnel.next();
personnel_isEmpty = !personnel_hasData;
%>
</select>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top