>>> Mauricio Villa <[EMAIL PROTECTED]> 22-Jan-01 3:10:33 PM >>>

>I'm trying to compile this servlet, but the compiler is
>reporting that there is a missing therm in line 10
>("public void doPost....) and ';' expected in
>the same line.  What must I do?

The syntax looks okay to me.

- are you sure you cut and paste it properly?
- is the servlet.jar in your compiler's classpath?

BTW this servlet won't really work. You're not outputting anything.

Also it's good practice to load the database driver in the init()
method. Like this:

   public void init()
   {
      Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
   }



Nic Ferrier

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to