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>
<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>
相关文章推荐
- JSP页面练习代码(一)
- JSP页面练习代码(二)
- JSP页面代码练习(三)
- JSP 页面代码练习
- jsp页面代码练习
- jsp页面中的代码加载执行顺序
- SpringBoot创建JSP登录页面功能实例代码
- jsp页面checkbox数组递交到Action代码
- jsp页面不显示js错误(小红叉)代码
- js如何获取jsp页面中嵌入的java代码中的变量?
- jsp中未登录用户也可以浏览页面的功能实现代码
- MyEciplse 设置jsp编辑器 ,只jsp页面的代码
- 增加任务表单练习代码1~addForm.jsp
- 通过AJAX调用页面后台代码方法实现省级三级联动效果 (简单练习)前台
- 关于html5与jsp页面同样的html代码展示的页面效果不一样的问题
- JSP页面常用到的代码
- JSTL标签急速秒杀jsp页面中的java代码---自定义函数
- 针对jsp页面插入jstl代码遇到HTTP Status 500 - java.lang.ClassNotFoundException: org.apache.jsp.jstl.jstl_jsp的问题
- JSP简单练习-定时刷新页面
- 在jsp页面中直接写代码用于显示当前时间