Jump to content

national

Members
  • Posts

    21
  • Joined

  • Last visited

About national

  • Birthday 01/01/1994

Profile Information

  • Gender
    Male

national's Achievements

Newbie

Newbie (1/14)

4

Reputation

  1. Please Start its Java, bcoz there is no Java.
  2. ok I want to unsuspend my national account please unsuspend it as soon as possible.
  3. Heliohost Username: national Server :Johnny Heliohost main Domain : nationalautomobiles.heliohost.org
  4. means I have to again wait for that long much time.
  5. My java has been removed I don't know why it was installed earlier but now it is removed please install it as soon as possible.
  6. I want to add a email method of cpanel in my website but I don't know the properties of cpanel's email Means I want to know the host, Port of the cpanel email If anyone knows then Please Help.
  7. Now its giving me an error indicating " Oops! This link appears to be broken." Its giving this error from yesterday and the main thing is that none of the pages are running and at the same place if I write a html code then it is running easily... I have changed my Index.jsp to index.html, but because of html extension jsp is not running.
  8. Please help my domain name "nationalautomobiles.heliohost.org" giving error HTTP STATUS 404- My id is national Please Reply
  9. I have googled it but there is a line of code class.forName("com.mysql.jdbc.Driver"); from where Java recognizes that the given database's Driver is mysql for it we install mysql connector in our home pc but I think here in my account it has not been installed please check it in my account and if it is not there then please install it because that is the reason I am not able to host my site. nationalautomobiles.heliohost.org
  10. Please tell me anyone who have connected his/her website of jsp to mysql in heliohost then please tell me that how u have get connected because I am not able to connect to the database Everytime I try to connect to the database it's giving me error ClassNotFoundException "com.mysql.jdbc.Driver"
  11. <p>It's also not working see my code </p> <p> </p> <div><%@page import="java.sql.*" %></div> <div><%</div> <div>try</div> <div>{</div> <div>Connection connection = DriverManager.getConnection(</div> <div> "jdbc:mysql://127.0.0.1/"+"national_national",</div> <div> "username",</div> <div> "password"</div> <div> );</div> <div>Statement statement = connection.createStatement();</div> <div>ResultSet result = statement.executeQuery("SELECT * from adminlogin");</div> <div>while (result.next()) { </div> <div>%></div> <div><%= result.getString(2) %>: <%= result.getString(3) %><br/></div> <div><% }</div> <div>}</div> <div>catch(Exception e)</div> <div>{</div> <div>session.setAttribute("Error",e);</div> <div>response.sendRedirect("Error.jsp");</div> <div>} %></div> <p>And the Error is </p> <p> </p> <p> </p> <h2 style="color: rgb(0, 0, 0); font-family: 'Times New Roman';"> Error is java.sql.SQLException: No suitable driver found for jdbc:mysql://127.0.0.1/national_national</h2>
  12. <p>ok This is my Code please see it<br /> </p> <div><%-- </div> <div> Document : TestConnection.jsp</div> <div> Created on : Sep 16, 2013, 11:47:41 AM</div> <div> Author : Manish Gupta</div> <div>--%></div> <div><%@page import="java.sql.*" %></div> <div><%@page contentType="text/html" pageEncoding="windows-1252"%></div> <div><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"></div> <div><html></div> <div> <head></div> <div> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"></div> <div> <title>JSP Page</title></div> <div> </head></div> <div> <body></div> <div> </div> <div> <%</div> <div>try</div> <div>{</div> <div>Class.forName("com.mysql.jdbc.Driver").newInstance();</div> <div>Connection connection = DriverManager.getConnection(</div> <div> "jdbc:mysql://127.0.0.1/" + "my_dbname",</div> <div> "my_username",</div> <div> "my_password"</div> <div>);</div> <div>Statement statement = connection.createStatement();</div> <div>ResultSet result = statement.executeQuery("SELECT * FROM adminlogin");</div> <div>while (result.next()) { </div> <div>%></div> <div><%= result.getString(2) %>: <%= result.getString(3) %><br/></div> <div><% }</div> <div>}</div> <div>catch(Exception e)</div> <div>{</div> <div>session.setAttribute("Error",e);</div> <div>response.sendRedirect("Error.jsp");</div> <div>}</div> <div> %></div> <div> </div> <div> </div> <div> </div> <div> </div> <div> </body></div> <div></html></div> Please Check the Attachment <%-- Document : TestConnection.jsp Created on : Sep 16, 2013, 11:47:41 AM Author : Manish Gupta --%> <%@page import="java.sql.*" %> <%@page contentType="text/html" pageEncoding="windows-1252"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>JSP Page</title> </head> <body> <% try { Class.forName("com.mysql.jdbc.Driver").newInstance(); Connection connection = DriverManager.getConnection( "jdbc:mysql://127.0.0.1/" + "my_dbname", "my_username", "my_password" ); Statement statement = connection.createStatement(); ResultSet result = statement.executeQuery("SELECT * FROM adminlogin"); while (result.next()) { %> <%= result.getString(2) %>: <%= result.getString(3) %><br/> <% } } catch(Exception e) { session.setAttribute("Error",e); response.sendRedirect("Error.jsp"); } %> </body> </html> I hope this will help
  13. Please install mysql connector or JLibrary in my account because it's giving me error ClassNotFoundException whenever I want to connect to the database My domain name is nationalautomobiles.heliohost.org id is national
  14. I have written the code like this Class.forName("com.mysql.jdbc.Driver"); Connection c = DriverManager.getConnection("jdbc:mysql://localhost/national?user=root"); but it's giving me an Error like this java.lang.ClassNotFoundException: com.mysql.jdbc.Driver Please Tell me how I connect the database
×
×
  • Create New...