标签:
<%@ 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