When You call the window.open(...)method, it expects doGet() method in the
servlet. It will give the error if you are using the doPost() method in the
servlet. You can write service() method instead.

Abhay

----- Original Message -----
From: Arun Jayaprakash <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 01, 2001 10:21 PM
Subject: Re: Resource not allowed


> On 1 Jan 2001, at 11:18, Rashid Amin wrote:
>
> Dear Rashid,
> > 405 error is due to bad request method. Please check in your servlet
code (the
> > servlet you are calling in action property of html form) whether you
have
> > overrided the doGet or doPost method accordingly. It must be according
to html
> > post method i.e for POST override doPost and for GET override doGet.
> Perhaps I was not clear. The servlet gets called if I submitted the
> form and allowed the new content do be displayed in the current
> window. If I were to use window.open(), using Javascript, the new
> content does not get displayed. I get the Http405 error instead!
>
> Regards,
> Arun Jayaprakash.
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
___________________________________________________________________________
> 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

Reply via email to