Sorry, my bad, I meant to say METHOD="POST", not METHOD="PUT". What you
have should be running the doPost method of the align servlet in the
servlets directory of your servlet engine. If you created a named servlet
entry for align, then the servlet must be named the same way it's specified
in the configuration. Make sure that you aren't throwing an exception in
the init method, other than that I'm out of ideas.
(*Chris*)
----- Original Message -----
From: TaNiA <[EMAIL PROTECTED]>
To: Chris Pratt <[EMAIL PROTECTED]>
Sent: Monday, August 23, 1999 9:20 PM
Subject: Re: Re: parsing information from a form
> Hi Chris,
>
> I call my form as
>
> <form action = /servlet/align method=post>
>
> why do I have to use PUT?
>
> cheers.
> tania
>
> ----- Original Message -----
> From: Chris Pratt <
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, August 24, 1999 10:21 AM
> Subject: Re: parsing information from a form
>
>
> 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
>
>
>
___________________________________________________________________________
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