title: JSP is not loading the jdbc driver
body: <p>I have my LoadDriver class which is working as intended (no error)</p>
  
  <pre><code>package p_test;
  
  import java.sql.Connection;
  import java.sql.DriverManager;
  import java.sql.SQLException;
  
  public class LoadDriver {   
      public static void Load() {
          try {
              Class.forName("com.mysql.jdbc.Driver").newInstance();
          } catch (Exception ex) {
              ex.printStackTrace();
          }
      }
  }
  </code></pre>
  
  <p>Then I have my jsp file </p>
  
  <pre><code>&lt;%@ page import="p_test.LoadDriver"%&gt;
  
  &lt;% LoadDriver.Load(); %&gt;
  </code></pre>
  
  <p>When i run it he cant find the driver</p>
  
  <pre><code>java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
  at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1320)
  at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1173)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Unknown Source)
  at p_test.LoadDriver.Load(LoadDriver.java:16)
  </code></pre>
  
  <p>I am using tomcat 8.0.
  I just started with jsp so i dont know where the program searches the driver!</p>
  
  <p>And if someone can recommend a good JSP Book or an online tutorial that would be great.</p>