http://localhost:8080/LoginDemo/userLogin.do 试试看
呵呵

解决方案 »

  1.   

    访问路径错误,struts访问路径默认是以.do结尾的
      

  2.   

    先看看Struts的文档,或者数据,看看Struts关于访问路径的设置,在Struts的配置文件里配置
      

  3.   

    Cannot retrieve mapping for action 
     
    异常 
     javax.servlet.jsp.JspException: Cannot retrieve mapping for action /Login (/Login是你的action名字) 
      
     
    可能原因 
     action没有再struts-config.xml 中定义,或没有找到匹配的action,例如在JSP文件中使用 <html:form action="Login.do".将表单提交给Login.do处理,如果出现上述异常,请查看struts-config.xml中的定义部分,有时可能是打错了字符或者是某些不符合规则,可以使用struts console工具来检查。 
      

  4.   

    请问楼主是不是用 myeclipse开发的那个列子?交流一下。QQ:8615448