How are you calling it? What is the exact HTML you are using? You MUST use
a FORM tag with the METHOD="PUT" attribute.
(*Chris*)
----- Original Message -----
From: TaNiA <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 23, 1999 6:02 PM
Subject: Re: parsing information from a form
> I have tried that (http://localhost:8080/servlet/MyServlet) and it still
> doesn't call doPost().
>
> and my doPost() is declared public...
>
> Any ideas?
>
> cheers,
> tania
>
>
>
> ----- Original Message -----
> From: Balogh Andras <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, August 23, 1999 7:22 PM
> Subject: Re: parsing information from a form
>
>
> Hi,
>
> Have You tried like this:
>
> <form action = "http://localhost:8080/servlet/MyServlet" method = "post">
>
>
> Check in the servlet source to be doPost (not misspelled accidentally??).
>
> Berst wishes,
> Andras
>
> ----- Original Message -----
> From: TaNiA <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, August 23, 1999 12:40 PM
> Subject: Re: parsing information from a form
>
>
> > I 've already tried using the absolute path and I still get the same
error
> > message.
> >
> > I'm using jsdk2.1, jswdk1.0 and jdk2.
> >
> > cheers,
> > tania
> >
> > ----- Original Message -----
> > From: Spencer Ridder <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, August 23, 1999 4:54 PM
> > Subject: Re: parsing information from a form
> >
> >
> > Hi TaNiA,
> >
> > I believe that you problem is that the post method is using the default
> > port 80 and not the port you are using ( 8080 ). I believe the that
> > browsers do not preserve the port number as part of the base URL.
> >
> > My suggestion:
> >
> > Change the relative URL in the action section of your post statement
> > to a absolute URL, including port number.
> >
> > OR
> >
> > you could set up your server to work on port 80.
> >
> > Good Luck,
> > Spencer
> >
> >
> >
> >
> >
> >
> > TaNiA wrote:
> > >
> > > Hi all,
> > >
> > > I have a form which is generated (by the doGet() method) in
> MyServlet.java
> > > when the following URL is called:
> > > http://localhost:8080/servlet/MyServlet?group=A
> > >
> > > When the user submits the form, the doPost() method in MyServlet is
> > invoked
> > > and the user's data is parsed by the doPost() method.
> > > <form action = "/servlet/MyServlet" method = "post">
> > >
> > > The problem I am facing is when I click on the submit button, I get
the
> > > error:
> > >
> > > Http 405- Resource not found, page cannot be displayed.
> > >
> > > somehow, the doPost() method is not called at all! I've put simple
> > > out.println statements in the doPost method and it seems like doPost()
> is
> > > not used at all!
> > >
> > > Any ideas?
> > >
> > > Is it because MyServlet was called with the parameter ?group=A and
upon
> > > submission of the form, there is no "group" parameter that's passed to
> > > MyServlet's doPost() method?
> > >
> > > Thanks heaps in advance,
> > > tania
>
>
___________________________________________________________________________
> 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
>
___________________________________________________________________________
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