Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem displaying a class...

Status
Not open for further replies.
Oct 22, 2001
215
US
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) + &quot; | &quot;);
}
}
----------
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=&quot;localdemo.class&quot; CODEBASE=&quot;localdemo&quot; WIDTH=125 HEIGHT=30></applet></p>

----
Or I should try some thing else? TIA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top