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

📄 showallparams.jsp

📁 功能描述:jsp开发答疑解惑200问题说明
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312"  import="java.util.*"  %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>示例程序:显示所有参数</title>
<style type="text/css">
<!--
.style1 {
	font-size: 18px;
	font-weight: bold;
}
-->
</style>
</head>

<body>
<table width="450" border="0" cellspacing="0" cellpadding="0">
  <tr align="center">
    <td colspan="2"><span class="style1">示例程序:显示所有参数</span></td>
  </tr>
  <%
  Enumeration params = request.getParameterNames() ;
  while ( params.hasMoreElements() ){
  String name = (String) params.nextElement();
  String value =  request.getParameter(name);
  %>
  <tr>
    <td width="121">&nbsp;<%=new String(name.getBytes("iso-8859-1"),"gb2312")%></td>
    <td width="329">&nbsp;<%=new String(value.getBytes("iso-8859-1"),"gb2312")%></td>
  </tr>
  <%
  }
  %>
</table>
</body>
</html>

⌨️ 快捷键说明

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