"Lambert, Stephen : CO IR" wrote:
>
Lambert,
If you try to POST from a form in HTML <form method=post> you should
implement the doPost method of HttpServlet and not doGet...
> My servlet "JdbcServlet3" is listed below and will compile without errors.
> However, when I try to POST the HTML FORM, I recieve the following error:
> Bad Request
> Your browser sent a request that this server could not understand.
> public class JdbcServlet3 extends HttpServlet
> implements SingleThreadModel {
>
> private Connection conn;
> private void dbConnect() throws SQLException {
>
> DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
> conn = DriverManager.getConnection
> ("jdbc:oracle:thin:@w121c20.legacyhs:1521:FIRST",
> "slambert", "password");
> }
>
> /**
> * doGet method is called in response to a GET request
> */
> public void doGet(HttpServletRequest request,
> HttpServletResponse response) throws ServletException,
> IOException
--
Sven E. van 't Veer, llm.
Departamento de Desenvolvimento
Brasil Informatica.
http://www.brvip.com.br
___________________________________________________________________________
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