-
-
WEB.XML
If more than one welcome-file, which one execute first? If first will run, what about second?
-
-
-
-
-
-
Connection c=DriverManager.getConnection("jdbc:oracle:thin:@hostname:1521:sid","scott","tiger" );
Statement s=c.createStatement();
ResultSet rs=s.executeQuery("select * from books");
while(rs.next())
{System.out.println("dno="+rs.getString(1)+"t"+"dname="+rs.getString(2)+"t"+"loc="+rs.getString(3));
}
}catch(Exception e){System.out.println(e);}
}
}">Problem in connection with Oracle without ODBC using Think DriverFollowing code is not workinggiving error Exception in thread Main java.lang.NoClassDefFoundError:jdbc1import java.sql.*;class jdbc1 { public static void main(String args[]) { try{ Class.forName("oracle.jdbc.driver.OracleDriver"); Connection c=DriverManager.getConnection("jdbc:oracle:thin:@hostname:1521:sid","scott","tiger" ); Statement s=c.createStatement(); ResultSet rs=s.executeQuery("select * from books"); while(rs.next()) {System.out.println("dno="+rs.getString(1)+"t"+"dname="+rs.getString(2)+"t"+"loc="+rs.getString(3)); } }catch(Exception e){System.out.println(e);} } }
-
-
-
-
Servlet Request Object
What is difference b/w WITH ServletRequest Object:................RequestDispatcher rd = getServletContext().getRequestDispatcher( "/servlet/XYZServlet"); rd.forward(request, response);with ServletContext Object:.......... RequestDispatcher rd = getServletContext().getRequestDispatcher( "/servlet/XYZServlet"); rd.forward(request, response);what is difference b/w these two objects?which one is better...
-
-
-
-
-
-
-
Processing XML Data with Java
What is XML and when it will be used in Realtime project? can any one give me example of transfering the data with xml with java?
-
J2EE Interview Questions
Sub Category
Questions
Answers
Last Updated
Ans