论坛首页 Web前端技术论坛

一个关于映射的问题

浏览 2528 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2006-12-06  
报错:
HTTP Status 405 - HTTP method GET is not supported by this URL
type: Status report

message: HTTP method GET is not supported by this URL

description: The specified HTTP method is not allowed for the requested resource (HTTP method GET is not supported by this URL).

js文件:
var url = "/blurry?layerName="+parent.layerFrame.cx_layer+"&value="+s;
location.href = url;

web.xml:

    <servlet>
        <servlet-name>action</servlet-name>
        <servlet-class>com.common.util.BlurryAction</servlet-class>
           <init-param>
              <param-name>config</param-name>
     <param-value>/WEB-INF/webConfig.properties</param-value>
           </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>

    <servlet-mapping>
       <servlet-name>action</servlet-name>
       <url-pattern>/blurry</url-pattern>
    </servlet-mapping>

com.common.util.BlurryAction类extends HttpServlet,里面doGet和doPost都实现了,为什么提交的时候老是报上面的错误,请各位指点。
如果url改成具体的jsp,那么就可以提交过去。
论坛首页 Web前端技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics