框架是体现在客户端的,只能靠客户端脚本实现,服务器端脚本无论是jsp还是asp.net还是其他的都不能实现

解决方案 »

  1.   

    Context对象的getRequestDispatcher转向是以web application的根目录为其实点的,是绝对的
    可以使用Request对象的getRequestDispatcher,它的路径是相对的
    如果需要转向到你的web application外,就使用response.sendRedirect();吧
      

  2.   

    我的index.jsp大致是这样的
    <frame name="frame1" src="./info.jsp">
    <frame name="frame2" src=""./button.jsp>
    index.jsp info.jsp and button.jsp都放在/system/目录下filterConfig.getServletContext().getRequestDispatcher("/system/index.jsp").forward(request, response),服务器报告说找不到info.jsp和index.jsp当然了,直接从网页访问index.jsp是没有问题的,我应该如何处理呢?请指教
      

  3.   

    filterConfig.getServletContext().getRequestDispatcher("/system/index.jsp").forward(request, response);
    -->
    request.getRequestDispatcher("/system/index.jsp").forward(request, response);
      

  4.   

    request.getRequestDispatcher("/index.jsp").forward(request, response);
      

  5.   

    但是我不仅仅是这个页面需要dispatch,不能全部放到跟目录下吧,那样网站的结构岂不是很混乱!