Hai dimenticato import java.sql.*;
e non trascurare il file web.xml se usi tomcat.
Ciao