客户端请求页面的方式

  <!-- 使用超链接请求到新页面-->
<!--超链接到page2,弹出新窗口--> <a href="page2.jsp" target="_blant">链接到page2</a></br> <!--相对路径超链接到page2--> <a href="./page2.jsp"> 链接到page2</a></br> <a href="../demo1/page2.jsp"> 链接到page2</a></br> <!--绝对路径连接到page2 request.getContextPath() 请求域名--> <a href="http://localhost:8080/web2/demo1/page2.jsp"> 链接到page2</a></br> <a href="<%=request.getContextPath() %>/demo1/page2.jsp"> 链接到page2</a></br>
<!--连接到Page2并传参uid需要在page2中接受-->
<a href="page2.jsp?uid=admin"> 链接到page2</a></br>

 2使用超链接

原文地址:https://www.cnblogs.com/wanghongjie/p/4534072.html