Anshu:

Is there any particular reason why you decided to use requestDispatcher and not
Response.sendRedirect()? Because one usually uses the
RequestDispatcher in the case of wanting to forward the request, not just to
redirect to another url.. I have some trivial code i wrote over the weekend
which illustrates the use of RequestDispatcher, which I will be happy to send to
you if you would like.

Sorry I haven't actually answered your question..
Geeta

"Garg, Anshu (CAP, RAIL)" wrote:

> I invoke a servlet from an HTML page using method = "POST" and ACTION = "URL
> to the servlet1". It works fine.
>
> Now suppose this servlet forwards the request to second HTML page (using
> RequestDispathcher). The HTML page invokes second servlet using method =
> "POST" and ACTION = "URL to the servlet2". It does not work. The browser
> gives the error message "405 Method not allowed".
>
> If I change method from POST to GET, it works fine.
>
> Can you throw some light as to why this is happening.
>
> Anshu Garg
>
> ___________________________________________________________________________
> 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