troubleshooting Question

Eclipse-how to work with simple program

Avatar of Manikandan Thiagarajan
Manikandan ThiagarajanFlag for India asked on
Java
27 Comments2 Solutions273 ViewsLast Modified:
Hi all

I have downloaded Ecllipse. i have an ecllipse folder in desktop.

how to work simple program in that.

i think ecclipse  is anIDE environment.could i need to download any other tool

for working with ecclipse.

This is my sample program.

<%@ page language = "java" import ="java.sql.*" %>
<html>
<body>
<%
Connection con = null;

try
{
      Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
      con = DriverManager.getConnection("jdbc:odbc:ss","sa","");
      Statement st = con.createStatement();
      ResultSet rs = st.executeQuery("select * from customer");
      %>
            <table border =2>
            <%
            while(rs.next())
      {
            %>
            <tr>
            <td><%= rs.getString(1)%></td>

            <td><%= rs.getString(2)%></td>

            <td><%= rs.getString(3)%></td>

            </tr>

            <%
      }
            %>
            </table>
            <%
}
            catch(Exception d)
            {
                  out.println("can not display the records");

            }
            %>
            </body>
            </html>
How to save this program and test the program in ecclipse.

I aware that Hibernate . could i down load hibernate ?

which one is better, ecclipse or hibernate  

which tool should be better for test this program.I have sqlserver 2005.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 27 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 27 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros