BTW, it's a pity that my compiler didn't pick up the mistake earlier..
A suggestion - maybe later versions of the compiler could be enhanced to
pick up such bugs for the servlet developing environment.
For the record, I am using jsdk2.1 and jdk2..
cheers,
tania
----- Original Message -----
From: TaNiA <[EMAIL PROTECTED]>
To: A mailing list for discussion about Sun Microsystem's Java Servlet API
Technology. <[EMAIL PROTECTED]>
Sent: Tuesday, August 24, 1999 4:33 PM
Subject: Re: Re: parsing information from a form
Hi all,
Thanks HEAPS for all your help.. I found the bug.
public void doPost (HttpServletRequest req, HttpServletResponse res)
was declared as doPost(HttpServletResponse res, HttpServletRequest req)!!!
That was all that was stuffing up my code!!!!! (the wrong order of
passing in the parameters). What a silly bug...
Thanks to all, esp. Chris and Vijay for their help.
I've learnt heaps, esp from Vijay who showed me how to use the service()
method -
that was an excellent piece of code, Vijay.
Once again, thanks heaps..
cheers,
tania
----- Original Message -----
From: piyush raj jain <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 25, 1999 2:11 PM
Subject: Re: parsing information from a form
hi tania and all
if this problem get solved
then pl rite the analysis
thanx
Balogh Andras wrote:
> Hi!
>
> Whaty about sending the HTML page and the Servlet source?
>
> Best wishes,
> Andras
>
> ----- Original Message -----
> From: TaNiA <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, August 24, 1999 4:02 AM
> 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
___________________________________________________________________________
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