Displaying 2 results from an estimated 2 matches for "executequery".
2008 Jun 17
4
Formating Date Field
First.jsp
------------------
<jsp:usebean id="db" class="db.dbClass" scope=session/>
<html>
<body>
<form action="MyAction.jsp" method="post">
<% ResultSet rs=db.executeQuery("select no,name from mytable");
while(rs.next())
{%>
<input type=checkbox value=<%=rs.getString(1)%> onclick=callJs(<
%=rs.getString(1)%>) >
<%}
%>
<input type=text name=displaydatetxt id=displaydate/>
</form>
<script>
function callJs(arg1)
{
v...
2006 Apr 19
0
ResultSetMetaData
dose Ruby or ActiveRecord have the Java/JDBC equivalent for retrieving
ResultSet meta data...
PreparedStatement statement = null;
try
{
statement = connection.prepareStatement("select * from some_table");
ResultSet rs = null;
try
{
rs = statement.executeQuery();
ResultSetMetaData rsMetaData = rs.getMetaData();
int columnCount = rsMetaData.getColumnCount();
more stuff...
--
Posted via http://www.ruby-forum.com/.