servlets thread: Servlets and JSP.
Do something like this this comes from a bean I wrote
returnBuffer.append("\t\n<td>\n<select name=\"" + optionbox
+"\">\n ");
while (rset.next()){
returnBuffer.append("\t<option value=\"" +
rset.getString(optionstring1) + "\">" +
rset.getString(optionstring2) +
"</option>\n");
RecCount++;
}//End While
if (RecCount < 1) {
returnBuffer.append("\t<option
value=\"0\">No Sub Categories Available</option>\n");
}
returnBuffer.append("\n</select></td></TR>\n");
}
resultTable = returnBuffer.toString();
stmt.close();
done();
-----Original Message-----
From: bounce-servlets-541333@p...
[mailto:bounce-servlets-541333@p...] On Behalf Of Kalpana
Sent: Friday, July 27, 2001 10:59 AM
To: Servlets
Subject: [servlets] Servlets and JSP.
Hi,
i have written a servlet that retrieves data from the database,i want
to
get this data and display it in a combo box in a JSP page.
please help in this regard and if possible can sumone send me the source
code for the same.
hoping for a positive reponse.
Thanks & Regards Kalpana
---
You are currently subscribed to servlets as: yahden@y... To
unsubscribe send a blank email to $subst('Email.Unsub')