By the way, check the URL displayed in your browser after the first
unsuccessful request - you'll see the URL of the servlet, so when you
refresh you send a new request directly to the servlet, which is by default
a 'get' request instead of a 'post'.
this is why it works when you refresh it.

> -----Original Message-----
> From: Paul Foxton [mailto:[EMAIL PROTECTED]]
> Sent: 04 October 2001 10:44
> To: '[EMAIL PROTECTED]'
> Subject: RE: -- http 405, can not execute servlet
> 
> 
> change the method in your form tag:
> 
> <FORM ACTION="/servlet/SnoopServlet" METHOD="get">
> 
> > -----Original Message-----
> > From: Sam [mailto:[EMAIL PROTECTED]]
> > Sent: 04 October 2001 11:04
> > To: [EMAIL PROTECTED]
> > Subject: -- http 405, can not execute servlet
> > 
> > 
> > Hi everybody
> > 
> > I can execute Servlet Exaxmple follow the command,
> > http://localhost:8080/servlet/SnoopServlet
> > 
> > I try to make a html file
> > <FORM ACTION="/servlet/SnoopServlet" METHOD="post">
> > <INPUT TYPE=SUBMIT VALUE="submit">
> > </FORM>
> > 
> > The Server can not accept the request.
> > REPLY: (405 Server does not support requested method)
> > 
> > However after I RELOAD the page, it is work well.
> > Why?? why RELOAD is necessary.
> > 
> > --Sam
> > 
> 

Reply via email to