0
点赞
收藏
分享

微信扫一扫

jsp代码实例第343课

烟中雯城 2022-02-24 阅读 114

code343.jsp

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
	String name = request.getAttribute("name").toString();
	String age = request.getAttribute("age").toString();
	String sex = (String)request.getAttribute("sex");
	out.println("姓名:" + name + "<br>");
	out.println("年龄:" + age + "<br>");
	out.println("性别:" + sex + "<br>");
%>
</body>
</html>
举报

相关推荐

jsp代码实例第372课

jsp代码实例第301课

jsp代码实例第371课

jsp代码实例第300课

jsp代码实例第345课

jsp代码实例第299课

0 条评论