• 11.24作业2


    留言页

    <%@ 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="zuoye22.jsp" method="get">
    留言簿<br>
    <textarea name="liuyan" rows="20" cols="100"></textarea>
    
    <br>
    
    <input name="tijiao" type="submit" value="提交留言"/>
    
    </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>
    
    <%
    
    String s = new String(request.getParameter("liuyan").getBytes("ISO-8859-1"),"UTF-8");
    
    %>
    留言簿<br>
    <textarea rows="20" cols="100"><%= s %></textarea>
    
    <br>
    
    <a href="zuoye2.jsp"><button>返回</button></a>
    
    </body>
    </html>
  • 相关阅读:
    HandlerThread
    handler原理
    死锁简析
    Android序列化
    AsyncTask原理
    【java线程池】
    java创建线程的三种方式
    service相关
    【hashMap】详谈
    【activity任务栈】浅析
  • 原文地址:https://www.cnblogs.com/OldZhao/p/4993810.html
Copyright © 2020-2023  润新知