org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 49 in the jsp file: /fsxt/insert.jsp
String literal is not properly closed by a double-quote
46:    Statement sql = null;  
47:  try {
48:    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); //载入驱动程序
49:    String url="jdbc:odbc:driver={Microsoft Access Driver (*.mdb)}; DBQ=C:\\Tomcat 6.0
50: \\webapps\\ROOT\\fsxt\\user.mdb"; 
51:                   con= DriverManager.getConnection(url,"",""); 
52:            sql=con.createStatement();
请各位高手帮帮忙,谢谢!!!

解决方案 »

  1.   

     
     Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");  
     String url="jdbc:odbc:driver={Microsoft Access Driver (*.mdb)};DBQ=C:\\Tomcat 6.0\\webapps\\ROOT\\fsxt\\user.mdb";
      

  2.   

    org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 38 in the jsp file: /fsxt/insert.jsp
    String literal is not properly closed by a double-quote
    35: </font>
    36: 
    37: 
    38: <%
    39:    String username=ChangeEncoding(request.getParameter("username"));
    40:    String password=ChangeEncoding(request.getParameter("password"));
    41:    String name=ChangeEncoding(request.getParameter("name"));怎么又成这样了啊~~~~~~~~那个URL我没有换行啊,我打开文件最小化时就换行了,最大化时没换行
      

  3.   

    <a href="http://sighttp.qq.com/cgi-bin/check?sigkey=72d35736d0c176d2bd3bb96d6a9d4f88e4db048df8e9625a099eb21465dd63f51ffa8a64e2c356095d1432a2312d8cab"; target=_blank; onclick="var tempSrc='http://sighttp.qq.com/wpa.js?rantime='+Math.random()+'&sigkey=72d35736d0c176d2bd3bb96d6a9d4f88e4db048df8e9625a099eb21465dd63f51ffa8a64e2c356095d1432a2312d8cab';var oldscript=document.getElementById('testJs');var newscript=document.createElement('script');newscript.setAttribute('type','text/javascript'); newscript.setAttribute('id', 'testJs');newscript.setAttribute('src',tempSrc);if(oldscript == null){document.body.appendChild(newscript);}else{oldscript.parentNode.replaceChild(newscript, oldscript);}return false;"><img border="0" SRC='http://wpa.qq.com/pa?p=1:729273751:1' alt="er"></a>
      

  4.   

    49:  String url="jdbc:odbc:driver={Microsoft Access Driver (*.mdb)}; DBQ=C:\\Tomcat 6.0"+
    50:  "\\webapps\\ROOT\\fsxt\\user.mdb";