title: No suitable driver found for jdbc:ucanaccess://C:\Users\Asim Iqbal\Documents\PersonInfo.accdb
body: <p>I have to face this error:</p>
  
  <blockquote>
    <p>No suitable driver found for jdbc:ucanaccess://C:\Users\Asim
    Iqbal\Documents\PersonInfo.accdb
      org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:555)</p>
  </blockquote>
  
  <p>in my JSP project. But when I run <code>PersonDAO.java</code> separately, it works properly. But, by using Bean I have to face this type of error. These files are as followed.</p>
  
  <p>PersonDAO.java</p>
  
  <pre><code>import java.util.*;
  
  import java.sql.*;
  
  import java.io.*;
  public class PersonDAO implements Serializable  {
  private PreparedStatement stmt;
  
  public ArrayList pList;
  String url="jdbc:ucanaccess://C:\\Users\\Asim Iqbal\\Documents\\PersonInfo.accdb";
  
  Connection   conn = DriverManager.getConnection(url);
  
  public PersonDAO() throws SQLException{
  
      establishConnection();
  }
  private void establishConnection() throws SQLException
  {
      String url1="jdbc:ucanaccess://C:\\Users\\Asim Iqbal\\Documents\\PersonInfo.accdb";
      conn = DriverManager.getConnection(url1);
  }
  
  public ArrayList getPerson(String name) throws SQLException { 
      PersonInfo pInfo=new PersonInfo();
  
      pList=new ArrayList();
  
      String sql="SELECT * FROM Person WHERE name=?";
  
      stmt=conn.prepareStatement(sql);
  
      stmt.setString(1,name);
  
      ResultSet rs=stmt.executeQuery();
       String add,n;
  
       String p;
  
      while(rs.next()){
  
          n=rs.getString("Name");
          add=rs.getString("Address");
  
          p=rs.getString("PhoneNumber");
  
          pInfo.setName(n);
  
          pInfo.setAddress(add);
  
          pInfo.setpNumber(p);
  
          pList.add(pInfo);
      }
      return pList;
  
      }
   }
  </code></pre>
  
  <p>saveperson.jsp</p>
  
  <p></p>
  
  <pre><code>&lt;/head&gt;
      &lt;jsp:useBean id="pDAO" class="Person.PersonDAO" scope = "request" /&gt; 
  
      &lt;jsp:useBean id="personBean" class="Person.PersonInfo" scope="request"/&gt; 
  
      &lt;jsp:setProperty name="personBean" property="name" param="name"/&gt;
  
      &lt;jsp:setProperty name="personBean" property="address" param="address"/&gt;
  
      &lt;jsp:setProperty name="personBean" property="pNumber" param="pNumber"/&gt;
      &lt;%
       pDAO.setPerson(personBean);
      %&gt;
      &lt;center&gt;
  
      &lt;h1&gt;You have successfully add the record!&lt;/h1&gt;
      &lt;h4&gt;  
            &lt;a href="index.html" &gt; Add another Person Record &lt;/a&gt; &lt;br&gt;
            &lt;br&gt;&lt;br&gt;
            &lt;a href="searchperson.jsp" &gt; Search Person &lt;/a&gt;    
        &lt;/h4&gt; 
      &lt;/center&gt;
  </code></pre>
  
  <p></p>
  
  <p>Please tell me where I am doing wrong..</p>