rs.getString<br />
function getId(id){ var f=document.form; f.method="post"; f.action='SelectBank1.jsp?id='+id; f.submit(); }
<% Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery("select IdwhichIsVarchar, description from SomeDataBase where IS_VISIBLE = 1 order by description "); %> <% while(rs.next()){ %> <tr><td><%=rs.getString(2)%></td> <td><input type="button" name="edit" value="Edit" style="background-color:green;font-weight:bold;color:white;" onclick="getId(<%=rs.getString(1)%>);" ></td> </tr> <% } %>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)