Driver Manager cannot be resolved to a type
<p>my JSP programs is mentioned below. this program i'm trying to running in tomact server but not getting desired out put what i'm expecting.</p>

<pre><code>      &lt;%@page import="java.sql.*"%&gt;
        &lt;%@page import="java.io.*"%&gt;
        &lt;%@page import="java.lang.*"%&gt;
        &lt;%@page import="java.sql.DriverManager" %&gt;
        &lt;%@page import="java.util.*"%&gt;
        &lt;%@page import="java.sql.Connection"%&gt;
        &lt;%!int  a=9;%&gt;
        &lt;%!int i=0;%&gt;

        &lt;%


   try{
        Connection con=null;
                PreparedStatement ps=null;
                ResultSet rs=null,re=null;
            Statement st=null;

            String fname,lname,pass,retypepass,gender,dob,age,email,phn;

            fname=request.getParameter("name");
            lname=request.getParameter("name1");

            pass=request.getParameter("pwd");
            retypepass=request.getParameter("pwd1");
            gender=request.getParameter("gender");
            dob=request.getParameter("day");
            email=request.getParameter("mailid");

            for(i=0;i&lt;email.length();i++)
            {
                a+=i;
            }
            out.println("your registration id is:"+a);
            String regid=String.valueOf(a);
            DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
            con=DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:1521:xe","system","system");
            st=con.createStatement();     
                    ps=con.prepareStatement("insert into Register3 values(?,?,?,?,?,?,?,?)");
                    ps.setString(1,fname);
                ps.setString(2,lname);
                ps.setString(3,regid);
                ps.setString(4,pass);
                ps.setString(5,retypepass);
                ps.setString(6,gender);
                ps.setString(7,dob);
                ps.setString(8,email);


                ps.executeUpdate();
                %&gt;
                &lt;html&gt;
        &lt;head&gt;
        &lt;script type="text/javascript"&gt;
        alert(" Thank you for Registration...!!");
        &lt;/script&gt;
        &lt;/head&gt;
        &lt;body&gt;
        &lt;center&gt;
            &lt;h1&gt;&lt;a href="login.html"&gt;login&lt;/a&gt;&lt;/h1&gt;
        &lt;/center&gt;
        &lt;/body&gt;
        &lt;/html&gt;
            &lt;%
            ps.close();         
            con.close();

    }
    catch(Exception e)
    {
        out.println("Error message:"+e);
    %&gt;
        &lt;html&gt;
        &lt;head&gt;
        &lt;script type="text/javascript"&gt;
        alert(" THIS USER ALREDY EXIT...!!");
        &lt;/script&gt;
        &lt;/head&gt;
        &lt;body&gt;
        &lt;center&gt;
            &lt;h1&gt;&lt;a href="registration.html"&gt;&lt;/a&gt;&lt;/h1&gt;
        &lt;/center&gt;
        &lt;/body&gt;
        &lt;/html&gt;

    &lt;%  


    }

%&gt;  
</code></pre>

<p>the above code showing following error</p>

<pre><code>org.apache.jasper.JasperException: Unable to compile class for JSP: 

An error occurred at line: 34 in the jsp file: /register.jsp
oracle.jdbc.OracleDriver cannot be resolved to a type
31:             }
32:             out.println("your registration id is:"+a);
33:             String regid=String.valueOf(a);
34:             DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
35:             con=DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:1521:xe","system","system");
36:             st=con.createStatement();     
37:                     ps=con.prepareStatement("insert into Register3 

    values(?,?,?,?,?,?,?,?)");



Stacktrace:
    org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)
    org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:366)
    org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:490)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:379)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:341)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:662)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:364)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
</code></pre>

<p>how to solve this error please help me. Please suggest me .</p>