⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 review.jsp

📁 Tomcat URL Rewrite Demo(URL重写例子)
💻 JSP
字号:
<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>这是URL重写技术</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
<style type="text/css">
body{
	font-size:12px;
	color:#666666;
}
table{
	border:1px solid #7DBEFF;
	background:#D9ECFF;
	margin:2px auto;
}
td {
	color:#333333;
	font-size:12px;
    line-height: 18px;
}
tr{
	background:#CAE4FF;
}
.td_head {
	font-family: "Verdana, ";
	color:#333333;
	font-size:12px;
	background:#A2D0FF;
    text-align:center;
}
.tips{
	border:#FF0000 solid 1px;
	background:#FFD0D0;
	padding:5px;
	margin:2px 2px;
}
</style>	
</head>
  
  <body>
  <table width="100%" border="0" cellspacing="0" cellpadding="5">
    <tr>
      <td class="td_head">这是URL重写技术</td>
    </tr>
    <tr>
      <td>1.访问无参数页面:<a href="index.html">index.html</a>(重定向到:<a href="index.jsp">index.jsp</a>)<br>
        2.访问有参数页面:<a href="review-12659374-p1.html">review-12659374-p1.html</a>(重定向到:<a href="review.jsp?id=12659374&page=1">review.jsp?id=12659374&amp;page=1</a>)</td>
    </tr>
    <tr>
      <td>
 <div class="tips">
 当前访问的是页面:<script language="javascript">document.write(window.location.href);</script><br/>
<%
	String id = request.getParameter("id");
	String p = request.getParameter("page");
	out.print("参数:id=" + id + "<br/>");
	out.print("参数:page=" + p + "<br/>");
%>	  
</div>
	  </td>
    </tr>	
  </table>
  </body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -