title: org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP
body: <p>unable to compile jsp in netbeans with glass fish server3.1.2,it is showing the following exception</p>
  
  <pre><code>org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP
  
  PWC6197: An error occurred at line: 9 in the jsp file: /index.jsp
  PWC6199: Generated servlet error:
  ';' expected
  
  PWC6197: An error occurred at line: 9 in the jsp file: /index.jsp
  PWC6199: Generated servlet error:
  ';' expected
  
  PWC6197: An error occurred at line: 9 in the jsp file: /index.jsp
  PWC6199: Generated servlet error:
  not a statement
  
  PWC6197: An error occurred at line: 9 in the jsp file: /index.jsp
  PWC6199: Generated servlet error:
  ';' expected
  </code></pre>
  
  <p>my java and jsp code</p>
  
  <pre><code>&lt;%@page contentType="text/html" pageEncoding="UTF-8" %&gt;
  &lt;%@page language="java" import= "java.sql.*"%&gt;
  &lt;%
  String driver="org.postgresql.Driver";
  Class.forName(driver).newInstance();
  Connection con=null;
  ResultSet rst=null;
  Statement stmt=null;
  try
  {
    String url="jdbc:postgresql://localhost:5432/ksa?user="postgres"password="postgres"";
    con=DriverManager.getConnection("url");
    stmt=con.createStatement();
  }          
  catch(Exception e)
                 {
    System.out.println(e.getMessage());
         }
  if(request.getParameter("action")!=null)
         {
             String name=request.getParameter("name");
             String address=request.getParameter("address");
             String id=request.getParameter("id");
             stmt.executeUpdate("insert into cd values('"+ name +"','"+ address +"')");
             rst=stmt.executeQuery("select * from cd");             
         }    
  %&gt;
  </code></pre>
  
  <p>netbeans shows the error in the line</p>
  
  <pre><code>String url="jdbc:postgresql://localhost:5432/ksa?user="postgres"password="postgres"";
  </code></pre>
  
  <p>iam using postgresql9.1,the glassfish log shows the following</p>
  
  <pre><code>SEVERE: Error compiling file: /home/adapco/.netbeans/7.1.1/config/GF3_1/domain1  /generated/jsp/cddata/org/apache/jsp/index_jsp.java
  WARNING: StandardWrapperValve[jsp]: PWC1406: Servlet.service() for servlet jsp threw exception
  </code></pre>