您的位置:首页 > Web前端 > JavaScript

JSP页面代码练习

2017-09-26 20:50 295 查看
 <html> 

<head> <title> 获取客户端信息</title> </head>

<body>

     <font color="blue"> 表单提交的信息是: </font> <br>

   输入的第一个数据是: <%=request.getParameter("shuju1")%> <br>

   输入的第二个数据是: <%=request.getParameter("shuju2")%><br><br>

<font color="red"> 客户端信息: </font><br>

  客户端协议名和版本号: <%=request.getProtocol()%><br>

 客户机名: <%=request.getRemoteHost()%><br>

 客户端提交信息的长度:<%=request.getContentLength()%><br>

 客户机的IP地址: <%=request.getRemoteAddr() %><br>

</body>

</html>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: