title: database connectivity using jsp
body: <pre><code>&lt;%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="ISO-8859-1" import="java.sql.*"%&gt;
  &lt;!DOCTYPE HTML&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta charset="UTF-8"&gt;
  &lt;title&gt;Inline Editing: Form Controls&lt;/title&gt;
  &lt;script type="text/javascript" src="../../lib.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="inline-editing.js"&gt;&lt;/script&gt;
  &lt;link type="text/css" rel="stylesheet" href="Presidents.css"&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;%
      Connection conn = null;
      PreparedStatement stmt = null;
      ResultSet rs = null;
      try
      {
          Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
          conn = DriverManager.getConnection("jdbc:odbc:Presidents");
  
          String sql = "SELECT PresidentID, FirstName, LastName, Bio FROM Presidents";
          stmt = conn.prepareStatement(sql);
  
          rs = stmt.executeQuery();
          out.write("&lt;h1&gt;Presidents&lt;/h1&gt;");
          out.write("&lt;p&gt;Double click on any cell to edit the field. Click off the field to save your change.&lt;/p&gt;");
          out.write("&lt;table&gt;");
          while (rs.next()) 
          {
              out.write("&lt;tr id='" + rs.getString("PresidentID") + "'&gt;");
  /*line 31*/         out.write("&lt;td class="editable" title='FirstName'&gt;" + rs.getString("FirstName") + "&lt;/td&gt;");
  /*line 32*/         out.write("&lt;td class="editable" title='LastName'&gt;" + rs.getString("LastName") + "&lt;/td&gt;");
  /*line 33*/     out.write("&lt;td class="editable" title='Bio'&gt;" + rs.getString("Bio") + "&lt;/td&gt;");
              out.write("&lt;/tr&gt;");
          }
          out.write("&lt;/table&gt;");
      }
      catch(Exception e)
      {
          out.write("failed: " + e.toString());
      }
      finally 
      {
          if (rs != null) rs.close();
          if (stmt != null) stmt.close();
          if (conn != null) conn.close();
      }
  %&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I am getting the following errors for lines 31 ,32 ,33</p>
  
  <pre><code>The method write(String, int, int) in the type Writer is not applicable for the arguments (String, String)
  Syntax error on token "editable", , expected
  </code></pre>
  
  <p>What should I do to solve this?</p>