>>> "Garg, Anshu (CAP, RAIL)" <[EMAIL PROTECTED]> 21-Aug-00
10:26:00 PM >>>
>You are right. Whenever you forward a request from a servlet
>to a static HTML page (by overriding doPost method),  it gives
>the error "Method not supported". But this is not true for a JSP.
>Change the extension of your static HTML page from .html to .jsp.
>Forward the request to the jsp file again by overriding doPost
method,
>it will work fine.

This is not the answer.

The solution *will* work - but *only* if you have a JSP engine
installed.

You must remember the rules of the web do no allow you to POST to a
static HTML page...

Because of this Web Server servlets (servlets that are mapped to the
default path for serving static HTML and other files) don't tend to
support POST operations.

You have several possible solutions:

1. include() the output of the static page instead
2. ensure you only GET from the servlet
3. output the contents of the HTML file directly when you get a POST
4. write you own webserver servlet to serve files from POST (this is
a bad idea)



Nic Ferrier

___________________________________________________________________________
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