Java Home

龙的天下

 

输入输出传递个人姓名

 1 yang.jsp
 2 <html>
 3 <head>
 4 <title>第一题1</title>
 5 </head>
 6 <body bgcolor=cyan>
 7 <center>
 8 <font size=20 color=red>
 9 请输入你的名字:
10   <form action="form.jsp" method=post >
11   姓名:<input type=text name="name" ><br>
12   <input type=submit value=" 提 交 ">
13   </form>
14 </font>
15 </body>
16 </html>

 1from.jsp
 2<%@ page contentType="text/html;Charset=gbk" %>
 3<html>
 4<title>第一题2</title>
 5<body bgcolor=cyan size=20>
 6<center>
 7<font size=20 color=red>
 8<%
 9   String name=request.getParameter("name");
10   out.print("你输入的姓名是:"+name);
11%>
12</font>
13</center>
14</body>
15</html>

posted on 2009-03-30 09:31 杨帆 阅读(115) 评论(1)  编辑  收藏

评论

# re: 输入输出传递个人姓名 2009-03-31 15:16 Java宅男

也不算很经典,不过看起来不错  回复  更多评论   


只有注册用户登录后才能发表评论。


网站导航:
 

导航

统计

常用链接

留言簿(2)

随笔档案

文章档案

新闻档案

链接(点击进入以下空间):

搜索

最新评论

阅读排行榜

评论排行榜