如题。我想在项目里面进行跳转。跳转的路径为D:\文件夹\up.html
请问下如何跳转????

解决方案 »

  1.   

    获得服务器路径 ? 你是两个 JDK 上项目的相互访问吗? 
      

  2.   

    ActionForward af = new ActionForward ();
    af.setPath("D:\文件夹\up.html");
    return af;大概这样
      

  3.   

    在Struts-config.xml中应该有
    <action path="" type="" >
             <forward name="" path=""/>
    </action>在Action类中的方法里跳转时写return map.findForward("");//这里就是 上面<forward>中的name属性.
      

  4.   

    下面写法能获得服务器路径
    <%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    %>