码迷,mamicode.com
首页 > 其他好文 > 详细

编写一个简易的留言薄,实现添加留言和显示留言内容等功能

时间:2016-06-27 10:37:46      阅读:158      评论:0      收藏:0      [点我收藏+]

标签:

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<form action="liuyan1.jsp" method="post">
<table align="center" width="450" height="300" border="1">
<tr>
<td height="50" align="center" >留言簿 </td></tr>

<tr><td height="200">
<textarea  name="a" rows="13" cols="60"></textarea></td></tr>
<tr>
<td align="center">
<input type="submit"  value="提交"></td></tr>
</table>
</form>
</body>
</html>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<form action="liuyan.jsp">
<table align="center" width="450" height="300" border="1">
<tr>
<td height="250" align="center" >
<%
String name=new String(request.getParameter("a").getBytes("ISO-8859-1"),"UTF-8");
out.print(name);
%></td></tr>

<tr><td height="50" align="center">
<input type="submit" value="返回">
</td></tr>
</form>
</body>
</html>

技术分享技术分享

编写一个简易的留言薄,实现添加留言和显示留言内容等功能

标签:

原文地址:http://www.cnblogs.com/jskbk/p/5619276.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!