代码不走action什么鬼

jsp页面:
window.location.href='${pageContext.request.contextPath }/DelCus.action?ci_id='+ids;
struts2.xml:

/jsp/Success.jsp
shibai.jsp

beans.xml:

Action:

public String DelCus() throws Exception{

    System.out.println("进来了");

        return this.customerService.DeleteCus(this.ci_id.substring(0, this.ci_id.lastIndexOf(",")))?"ok":"no";
    }
    点击删除后浏览器页面报错 控制台也不打印"进来了":

        </action>

    <action name="DelCus" class="cusAction" method="DelCus">
         <result name="ok">/jsp/Success.jsp</result>
         <result name="no">shibai.jsp</result> 

是不是你注解的问题?报什么错?

报错?404?
按你现在的写法应该访问路径是/DelCus!DelCus.action

还要看一下 web.xml 中 servlet 的 url 配置