Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String strxa = tfx1.getText(); //here i will get the student id from user.
- Class.forName("oracle.jdbc.driver.OracleDriver");
- Connection con = DriverManager.getConnection("jdbc:oracle:thin:@//host:1521/service","username","pwd");
- Statement st =con.createStatement();
- String str3 ="select student_xml from student where student_id='"+strxa+"'";
- System.out.println(str3);
- ResultSet rs = st.executeQuery(str3);
- System.out.println(str3);
- if (rs.next()) {
- XMLType poxml = (XMLType)rs.getObject(1);
- System.out.println(poxml); //when i try to print this no output in console
- String poString =poxml.getStringVal();
- System.out.println(poString); when i try to print this no output in console
- //Sets Records in TextFields.
- area.setText(poString);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement