【JSP开源代码栏目提醒】:文章导读:在新的一年中,各位网友都进入紧张的学习或是工作阶段。网学会员整理了JSP开源代码-get.jsp的相关内容供大家参考,祝大家在新的一年里工作和学习顺利!
<%@ page language="java" contentType="text/html; charset=GBK"
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>Insert title here</title>
</head>
<body bgcolor="yellow">
<p>获取文本框提交的信息:
<%String textContent=new String( request.getParameter("YourName").getBytes("ISO8859-1")); %>
<br>
<%=textContent %>
<p>获取按钮的名称
<%String buttonName=new String(request.getParameter("submit").getBytes("ISO8859-1")); %>
<br>
<%=buttonName %>
</body>
</html>
上一篇:
GenerateXML_sax.jsp
下一篇:
多年来只想说一句,我不怪你