Home » Developer & Programmer » JDeveloper, Java & XML » how send table data to applet from java class
how send table data to applet from java class [message #213059] Tue, 09 January 2007 04:48
Messages: 210
Registered: February 2006
Location: karachi
Senior Member
hi master
sir i send code from applet and run query as per given code how i send geting data to applet return
system return same code no change

if i send K1
end system return K1 not give title or result

i use this code from applet


this code in java class

public String mfa3(String s){
String mfatt ="K1";

String query = "select title from chartofacc where accid="+ "'" + mfatt.replaceAll("\\'", "\\'\\'") + "'";

Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@fahim:1521:aamir","muhammad","mfa786");
Statement stmt = conn.createStatement();

/*ResultSet rset = stmt.executeQuery("select title,accid from chartofacc where accid='K1'");*/
ResultSet rset = stmt.executeQuery(query);
while (rset.next())
s = rset.getString("title");
catch(Exception e){
return s;

please give me idea how i send result to applet


Previous Topic: unrecognized superclass oracle.forms.ui.vtextfield
Next Topic: method not give me right result how pass code from applet to class
Goto Forum:

Current Time: Mon Oct 24 19:07:34 CDT 2016

Total time taken to generate the page: 0.17009 seconds