bengalliboy
MIS
Hi,
I am a newbee in this and got my first Java /Aceess program. It is working fine that is, it is connecting to an Ms Access db and runs an sql and display the result.
----------
.
java.sql.ResultSet rs = st.executeQuery("select * from contact"
java.sql.ResultSetMetaData md = rs.getMetaData();
while(rs.next()) {
System.out.print("\nTUPLE: | "
for(int i=1; i<= md.getColumnCount(); i++) {
System.out.print(rs.getString(i) + " | "
}
}
----------
OK So far so good. (It displays the result in command prompt: java localdemo)...
Now I am trying to call this class from web page but it is saying class not fonud..!
All I am tring to do:
----
<p>
<applet CODE="localdemo.class" CODEBASE="localdemo" WIDTH=125 HEIGHT=30></applet></p>
----
Or I should try some thing else? TIA
I am a newbee in this and got my first Java /Aceess program. It is working fine that is, it is connecting to an Ms Access db and runs an sql and display the result.
----------
.
java.sql.ResultSet rs = st.executeQuery("select * from contact"
java.sql.ResultSetMetaData md = rs.getMetaData();
while(rs.next()) {
System.out.print("\nTUPLE: | "
for(int i=1; i<= md.getColumnCount(); i++) {
System.out.print(rs.getString(i) + " | "
}
}
----------
OK So far so good. (It displays the result in command prompt: java localdemo)...
Now I am trying to call this class from web page but it is saying class not fonud..!
All I am tring to do:
----
<p>
<applet CODE="localdemo.class" CODEBASE="localdemo" WIDTH=125 HEIGHT=30></applet></p>
----
Or I should try some thing else? TIA