dcsimg
Mysql Server is not responding with JSP application.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   sandesh_rane
Posted On:   Saturday, September 24, 2005 10:13 AM

Dear Sir,

I am coonecting Jakarta Tomcat server with JSP application.
And my backend is MYsql.

My tomcat server is running properly and even the main JSP page of our created is displaying.Even the mysql is running properly.

The problem comes while validating, it does'nt response the validating JSP page without any error.

Plz provide the solution for this as early as possible.


Sandesh / Khamir.

Re: Mysql Server is not responding with JSP application.

Posted By:   pola_pradeep  
Posted On:   Monday, October 10, 2005 07:11 AM


try the following code

public class TestMysql1
{
public static void main(String args[]) {
try {
/* Test loading driver */

String driver = "com.mysql.jdbc.Driver";

System.out.println( "=> loading driver:" );
Class.forName( driver );
System.out.println( "OK" );

/* Test the connection */

String url = "jdbc:mysql://localhost/test";

System.out.println( "=> connecting:" );
DriverManager.getConnection( url, "", "" );
System.out.println( "OK" );
}
catch( Exception x ) {
x.printStackTrace();
}
}
}
About | Sitemap | Contact