April 20th, 2002, 07:05 AM
Inserting data into a table
Is it possible to write jsp code in the middle of the html to insert data from table in database into table on browser. I want to write it in the html as the data in the table are going to be active links to the next page.
<% For n=1 to rs.count%>
<href <% rs.next%>/href>
If anyone can help me with the proper jsp code i'd really appreciate it, I need help urgently....
April 20th, 2002, 09:16 PM
try something like this
out.println("<tr><td><a href=" + <%rs.field("1")%> + ">" + <%rs.field("1")%> + </a></td></tr>");
I'm not 100% sure on the syntax. I usually use servlets but they are very similar.