That's not becuase of your HTML, it's because of your Servlet. It sounds
like you don't implement the doPost method. If you do, check it very
carefully, even minor differences from the standard can be major.
protected void doPost (HttpServletRequest req,HttpServletResponse res)
throws ServletException, IOException;
Rules and acceptable variations:
it can be either protected or public.
it must return void.
it must be properly capitolized.
The first parameter must be an HttpServletRequest.
The second parameter must be an HttpServletResponse.
There must only be two parameters.
It may throw either or both ServletException and/or IOException.
(*Chris*)
----- Original Message -----
From: Lars Wiklund <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 26, 1999 10:29 AM
Subject: Re: doPost
> Here it is...
>
> <HTML>
> <HEAD>
> <TITLE>PB Demo</TITLE>
> </HEAD>
> <BODY>
> Before you begin exploring the PB Demo web site, please
register.
> <!-- Form tag goes here -->
> <FORM METHOD=POST ACTION="/servlet/LoginServlet">
> <pre>
> <b>Name: <input type="text" name="name"
size=27>
> E-Mail: <input type="text" name="email"
size=35>
> Company: <input type="text" name="company"
size=20>
> </b>
> </pre>
>
> <center>
> <p><br>
> <input type="submit" value="Submit">
> <input type="reset" value="Reset">
> </center>
> </form>
> <P>
> </BODY>
> </HTML>
> /Lars
> -----Ursprungligt meddelande-----
> Fran: srinivas [SMTP:[EMAIL PROTECTED]]
> Skickat: den 26 augusti 1999 01:38
> Till: [EMAIL PROTECTED]
> Amne: RE: doPost
>
> just send us the html file thro which ur calling us, there mightbe some
> error in that html file. i feel everything is perfect as far as
> servlets is considered.
>
> > -----Original Message-----
> > From: Lars Wiklund [SMTP:[EMAIL PROTECTED]]
> > Sent: jeudi 26 aout 1999 22:32
> > To: [EMAIL PROTECTED]
> > Subject: doPost
> >
> > I?m trying to pass some parameters to my servlets doPost method and
> > gets this error message:
> >
> > 400 Bad Request
> >
> > POST is not supported by this URL
> >
> > I?m using IBM HTTP server 1.3.3 and I`m just trying to print out
> > something on the screen with my doPost.
> >
> > public void doPost(HttpServletRequest request, HttpServletResponse
> > response)
> > throws IOException, ServletException
> > {
> > Enumeration e = request.getParameterNames();
> > PrintWriter out = response.getWriter ();
> > while (e.hasMoreElements()) {
> > String name = (String)e.nextElement();
> > String value = request.getParameter(name);
> > file://Deprecated
> > out.println(name + " = " + value);
> > }
> > }
> >
> > Best Regards
> > Lars Wiklund
> >
> > ______________________________________________________________________
> > _____
> > 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
> <<Fil: ATT00022.htm>>
>
>
___________________________________________________________________________
> 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
>
___________________________________________________________________________
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