我用的是tomcat 6.0.26
HTTP Status 404 - /struts2/login.jsp--------------------------------------------------------------------------------type Status reportmessage /struts2/login.jspdescription The requested resource (/struts2/login.jsp) is not available.
--------------------------------------------------------------------------------Apache Tomcat/6.0.26
我这边加了路径的,是从properties直接复制过来的路径,应该没问题,可是……

解决方案 »

  1.   

    你的tomcat信息可能 被你隐藏掉了,最好用log4j把所有日志都显示出来 
      

  2.   

    <%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    %>
    在页面开始
    然后再head中加上<base href="<%=basePath%>">貌似就ok了
      

  3.   

    login.jsp
    是这样的
    <%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
    <%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
      <head>
        <base href="<%=basePath%>">
        
        <title>My JSP 'login.jsp' starting page</title>
        
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">    
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <!--
    <link rel="stylesheet" type="text/css" href="styles.css">
    -->  </head>
      
      <body>
        
        
        <form action="login.action" method="post">
        
        username: <input type="text" name="uesrname"/><br/>
         passsword: <input type="password" name="password"/><br/>
        
        <input type="submit" value="submit"/>
        
        </form>
        
      </body>
    </html>
      

  4.   

    路径的问题吧,直接调用JSP,是不是没有把路径写完整,要是跳转的Action看看是不是result哪里配置错了,肯定是路径问题!
      

  5.   

    你请求的这个struts2/login.jsp路径有错误
      

  6.   

    路径问题。你追踪路径看。就是先不要跟踪到整个路径的。而且先进到tomCat下看有没有问题的哈,然后再逐步跟踪看是那个问题了,这样就可以把它给揪出来
      

  7.   

    你请求的这个struts2/login.jsp路径有错误