I'm using Apache Server 6. and i'm attempting to update personal files using ajax put request however the server is giving me error 405 Method Not Permitted. I'm working this on home windows. Can anybody assist me in the event that.

Thanks ahead of time.

Vinay

I am presuming you're using apache tomcat (since you have pointed out version 6.)

For the reason that situation add this for your webapp's web.xml:

<servlet>
    <servlet-name>myDefault</servlet-name>
    <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
    <init-param>
        <param-name>debug</param-name>
        <param-value>0</param-value>
    </init-param>
    <init-param>
        <param-name>listings</param-name>
        <param-value>false</param-value>
    </init-param>
    <init-param>
        <param-name>readonly</param-name>
        <param-value>false</param-value> <!-- this will enable PUT for your app -->
    </init-param>
    <load-on-startup>1</load-on-startup>
</servlet>

<servlet-mapping>
    <servlet-name>myDefault</servlet-name>
    <url-pattern>/</url-pattern>
</servlet-mapping>

You'll be able to test this like so, to upload the file (You'll need the curl program to check)

curl -T somefile.txt http://localhot:8080/<yourapp>/

If you wish to enable this globally, you may make exactly the same alternation in /conf/web.xml (for default servlet)