|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
the subject mentions environment I am working in. My jsp page executes but I get error when I try to execute .jsp that has mysql commands.
For your knowledge, below is the part of file responsible to read db. ------------------------------------------------------------------------ <% Class.forName("com.mysql.jdbc.Driver"); Connection con = DriverManager.getConnection("jdbc:mysql://support.mysite.com/DBMysqlTest?user=usr&password=mypassword); Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY); ...... ..... %> ----------------------------------------------------------------------------- When I execute the above file, I get the following errors: ------------------------------------------------------------------------ type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 7 in the jsp file: /testfolder/testDSN.jsp Generated servlet error: [javac] Compiling 1 source file /opt/jakarta-tomcat-4.1.27/work/Standalone/localhost/_/testfolder/testDSN_jsp.java:59: unclosed string literal An error occurred at line: 7 in the jsp file: /testfolder/testDSN.jsp Generated servlet error: Connection con = DriverManager.getConnection("jdbc:mysql://support.mysite.com/DBMysqlTest?user=usr&password=mypassword); ^ An error occurred at line: 7 in the jsp file: /testfolder/testDSN.jsp Generated servlet error: /opt/jakarta-tomcat-4.1.27/work/Standalone/localhost/_/testfolder/testDSN_jsp.java:61: ')' expected Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY); ^ 2 errors -------------------------------------------------------------------------- Pls assist me on the matter. Thank you in advance. |
![]() |
| Viewing: Dev Shed Forums > Other > Project Help Wanted > Project on Linux 7.2, tomcat 4.1, mysql 4.0.15 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|