zoukankan      html  css  js  c++  java
  • 编写一个简易的留言薄,实现添加留言和显示留言内容等功能

    <%@ 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>

  • 相关阅读:
    java数据结构——哈希表(HashTable)
    java数据结构——红黑树(R-B Tree)
    java数据结构——二叉树(BinaryTree)
    java数据结构——递归(Recursion)例题持续更新中
    电路布线
    Cordova 入门
    mysql 分组加行号
    数据库表添加行号
    java jsp自定义标签
    java web Listener的简单使用案例
  • 原文地址:https://www.cnblogs.com/jskbk/p/5619276.html
Copyright © 2011-2022 走看看