
when i compile ur code i get the following errors.
InsertServlet.java:3: package javax.Servlet does not exist
import javax.Servlet.*;
^
InsertServlet.java:4: package javax.Servlet.http does not exist
import javax.Servlet.http.*;
^
InsertServlet.java:6: cannot find symbol
symbol: class HttpServlet
public class InsertServlet extends HttpServlet{
^
InsertServlet.java:7: cannot find symbol
symbol : class HttpServletRequest
location: class InsertServlet
public void doPost(HttpServletRequest req,HttpServletResponse res) throws Se
rvletException,IOException {
^
InsertServlet.java:7: cannot find symbol
symbol : class HttpServletResponse
location: class InsertServlet
public void doPost(HttpServletRequest req,HttpServletResponse res) throws Se
rvletException,IOException {
^
InsertServlet.java:7: cannot find symbol
symbol : class ServletException
location: class InsertServlet
public void doPost(HttpServletRequest req,HttpServletResponse res) throws Se
rvletException,IOException {
^
6 errors

A package is case-sensitive so import it properly.You are importing the packages with wrong case. The package java.Servlet.* does not exist. It is written as javax.servlet.*. Similarly change the other packages.
or simply import the following packages:
import java.io.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*;
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.