手里没有资料 当然变通也能做 但还是想知道怎么send绝对路径

解决方案 »

  1.   

    HttpServletResponse.sendRedirect
    public void sendRedirect(java.lang.String location)
                      throws java.io.IOException
    Sends a temporary redirect response to the client using the specified redirect location URL. The URL must be absolute (for example, https://hostname/path/file.html). Relative URLs are not permitted here.
    Parameters:
    location - the redirect location URL
    Throws:
    java.io.IOException - If an I/O error has occurred.
      

  2.   

    我在下面查的,http://www.cs.unc.edu/Courses/comp117/docs/documentation/servlet/api/javax/servlet/http/HttpServletResponse.html#sendRedirect(java.lang.String)
      

  3.   

    试过,绝对路径肯定可以
    我这么用的:String faillogin = "http://155.69.125.180/myproject/mydb/*.html";
      

  4.   

    response.sendRedirect("http://localhost:8080/mysoft");