{"id":667,"date":"2025-04-08T12:00:09","date_gmt":"2025-04-08T04:00:09","guid":{"rendered":"https:\/\/www.wunen.com\/index.php\/2025\/04\/08\/jsp%e5%ae%9e%e7%8e%b0%e6%b7%bb%e5%8a%a0%e5%9b%be%e4%b9%a6%e3%80%81%e4%bf%ae%e6%94%b9%e5%9b%be%e4%b9%a6%e4%bb%a5%e5%8f%8a%e5%88%a0%e9%99%a4%e5%9b%be%e4%b9%a6\/"},"modified":"2025-04-08T12:00:09","modified_gmt":"2025-04-08T04:00:09","slug":"jsp%e5%ae%9e%e7%8e%b0%e6%b7%bb%e5%8a%a0%e5%9b%be%e4%b9%a6%e3%80%81%e4%bf%ae%e6%94%b9%e5%9b%be%e4%b9%a6%e4%bb%a5%e5%8f%8a%e5%88%a0%e9%99%a4%e5%9b%be%e4%b9%a6","status":"publish","type":"post","link":"http:\/\/www.wunen.com\/index.php\/2025\/04\/08\/jsp%e5%ae%9e%e7%8e%b0%e6%b7%bb%e5%8a%a0%e5%9b%be%e4%b9%a6%e3%80%81%e4%bf%ae%e6%94%b9%e5%9b%be%e4%b9%a6%e4%bb%a5%e5%8f%8a%e5%88%a0%e9%99%a4%e5%9b%be%e4%b9%a6\/","title":{"rendered":"JSP\u5b9e\u73b0\u6dfb\u52a0\u56fe\u4e66\u3001\u4fee\u6539\u56fe\u4e66\u4ee5\u53ca\u5220\u9664\u56fe\u4e66"},"content":{"rendered":"<div class=\"article_content clearfix\" id=\"article_content\">\n <link href=\"https:\/\/csdnimg.cn\/release\/blogv2\/dist\/mdeditor\/css\/editerView\/kdoc_html_views-1a98987dfd.css\" rel=\"stylesheet\"\/>\n <link href=\"https:\/\/csdnimg.cn\/release\/blogv2\/dist\/mdeditor\/css\/editerView\/ck_htmledit_views-704d5b9767.css\" rel=\"stylesheet\"\/>\n<div class=\"markdown_views prism-atom-one-dark\" id=\"content_views\">\n  <svg style=\"display: none;\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n   <path d=\"M5,0 0,2.5 5,5z\" id=\"raphael-marker-block\" stroke-linecap=\"round\" style=\"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);\">\n   <\/path>\n  <\/svg><\/p>\n<p>\n   \u6240\u7528\u8f6f\u4ef6\uff1a<br \/>\n   <br \/>\n   1 myeclipse<br \/>\n   <br \/>\n   2 mysql\u6570\u636e\u5e93<br \/>\n   <br \/>\n   3 dbutils\u8fde\u63a5\u6570\u636e\u5e93<br \/>\n   <br \/>\n   4 bootstrap\u524d\u6bb5\u6846\u67b6<br \/>\n   <br \/>\n   5 EL\u8868\u8fbe\u5f0f+JSTL\u6807\u7b7e\u5e93<br \/>\n   <br \/>\n   6 c3p0\u8fde\u63a5\u6c60\n  <\/p>\n<hr\/>\n<p>\n   \u8fc7\u6ee4\u5668\uff08filter)\u89e3\u51b3\u5168\u7ad9\u7684\u5b57\u7b26\u4e71\u7801\u95ee\u9898\n  <\/p>\n<hr\/>\n<p>\n   \u6dfb\u52a0\u4e66\u7c4d\u5165\u9875\u9762\uff1a<br \/>\n   \n  <\/p>\n<hr\/>\n<p>\n   \u67e5\u8be2\u4e66\u7c4d\u9875\u9762\uff1a<br \/>\n   \n  <\/p>\n<hr\/>\n<p>\n   \u4fee\u6539\u4e66\u7c4d\u754c\u9762\uff1a\uff08\u6ce8\u610f\u8981\u56de\u663e\u6240\u8981\u4fee\u6539\u56fe\u4e66\u7684\u6570\u636e\uff09<br \/>\n   \n  <\/p>\n<hr\/>\n<p>\n   \u5de5\u7a0b\u76ee\u5f55\uff1a<br \/>\n   \n  <\/p>\n<hr\/>\n<hr\/>\n<p>\n   bookServlet\u5982\u4e0b\uff1a\n  <\/p>\n<pre class=\"prettyprint\"><code class=\"hljs java\"><span class=\"hljs-keyword\">package<\/span> com.hai.servlet;\n\n<span class=\"hljs-keyword\">import<\/span> java.io.IOException;\n<span class=\"hljs-keyword\">import<\/span> java.io.PrintWriter;\n<span class=\"hljs-keyword\">import<\/span> java.util.List;\n\n<span class=\"hljs-keyword\">import<\/span> javax.servlet.ServletException;\n<span class=\"hljs-keyword\">import<\/span> javax.servlet.http.HttpServlet;\n<span class=\"hljs-keyword\">import<\/span> javax.servlet.http.HttpServletRequest;\n<span class=\"hljs-keyword\">import<\/span> javax.servlet.http.HttpServletResponse;\n\n<span class=\"hljs-keyword\">import<\/span> com.hai.dao.bookDao;\n<span class=\"hljs-keyword\">import<\/span> com.hai.domain.book;\n<span class=\"hljs-keyword\">import<\/span> com.hai.utils.WebUtils;\n\n<span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-class\"><span class=\"hljs-keyword\">class<\/span> <span class=\"hljs-title\">bookServlet<\/span> <span class=\"hljs-keyword\">extends<\/span> <span class=\"hljs-title\">HttpServlet<\/span> {<!-- --><\/span>\n\n    <span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-title\">bookServlet<\/span>() {\n        <span class=\"hljs-keyword\">super<\/span>();\n    }\n\n    <span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-keyword\">void<\/span> <span class=\"hljs-title\">doGet<\/span>(HttpServletRequest request, HttpServletResponse response)\n            <span class=\"hljs-keyword\">throws<\/span> ServletException, IOException {\n\n        String type = request.getParameter(<span class=\"hljs-string\">\"type\"<\/span>);\n        <span class=\"hljs-keyword\">if<\/span> (type.equalsIgnoreCase(<span class=\"hljs-string\">\"charu\"<\/span>)) {\n            charu(request, response);\n        } <span class=\"hljs-keyword\">else<\/span> <span class=\"hljs-keyword\">if<\/span> (type.equalsIgnoreCase(<span class=\"hljs-string\">\"chaxun\"<\/span>)) {\n            chaxun(request, response);\n        } <span class=\"hljs-keyword\">else<\/span> <span class=\"hljs-keyword\">if<\/span> (type.equalsIgnoreCase(<span class=\"hljs-string\">\"shan\"<\/span>)) {\n            shanchu(request, response);\n        } <span class=\"hljs-keyword\">else<\/span> <span class=\"hljs-keyword\">if<\/span> (type.equalsIgnoreCase(<span class=\"hljs-string\">\"xiu01\"<\/span>)) {\n            xiugai01(request, response);\n        } <span class=\"hljs-keyword\">else<\/span> <span class=\"hljs-keyword\">if<\/span> (type.equalsIgnoreCase(<span class=\"hljs-string\">\"xiu02\"<\/span>)) {\n            xiugai02(request, response);\n        }\n    }\n\n    <span class=\"hljs-keyword\">private<\/span> <span class=\"hljs-keyword\">void<\/span> <span class=\"hljs-title\">xiugai02<\/span>(HttpServletRequest request,   \/\/\u4fee\u6539\u56fe\u4e66\n            HttpServletResponse response) {\n        String id = request.getParameter(<span class=\"hljs-string\">\"id\"<\/span>);\n        String bookname = request.getParameter(<span class=\"hljs-string\">\"bookname\"<\/span>);\n        String author = request.getParameter(<span class=\"hljs-string\">\"author\"<\/span>);\n        String age = request.getParameter(<span class=\"hljs-string\">\"age\"<\/span>);\n        book shu = <span class=\"hljs-keyword\">new<\/span> book();\n        shu.setId(id);\n        shu.setBooknamee(bookname);\n        shu.setAuthorr(author);\n        shu.setAgee(Integer.parseInt(age));\n        bookDao mm=<span class=\"hljs-keyword\">new<\/span> bookDao();\n        mm.xiugai(shu);\n        <span class=\"hljs-keyword\">try<\/span> {\n            response.getWriter().write(<span class=\"hljs-string\">\"\u4fee\u6539\u5b8c\u6bd5!!!\"<\/span>);\n        } <span class=\"hljs-keyword\">catch<\/span> (IOException e) {\n            e.printStackTrace();\n        }\n    }\n\n    <span class=\"hljs-keyword\">private<\/span> <span class=\"hljs-keyword\">void<\/span> <span class=\"hljs-title\">xiugai01<\/span>(HttpServletRequest request,  \/\/\u7528\u4e8e\u56de\u663e\u8be5\u56fe\u4e66\u7684\u6570\u636e\n            HttpServletResponse response) {\n        String id = request.getParameter(<span class=\"hljs-string\">\"id\"<\/span>);\n        bookDao mmBookDao = <span class=\"hljs-keyword\">new<\/span> bookDao();\n        book shu = mmBookDao.chaxun(id);\n        request.setAttribute(<span class=\"hljs-string\">\"book\"<\/span>, shu);\n        <span class=\"hljs-keyword\">try<\/span> {\n            request.getRequestDispatcher(<span class=\"hljs-string\">\"\/WEB-INF\/xiugai.jsp\"<\/span>).forward(\n                    request, response);\n        } <span class=\"hljs-keyword\">catch<\/span> (ServletException e) {\n            <span class=\"hljs-comment\">\/\/ TODO Auto-generated catch block<\/span>\n            e.printStackTrace();\n        } <span class=\"hljs-keyword\">catch<\/span> (IOException e) {\n            <span class=\"hljs-comment\">\/\/ TODO Auto-generated catch block<\/span>\n            e.printStackTrace();\n        }\n\n    }\n\n    <span class=\"hljs-keyword\">private<\/span> <span class=\"hljs-keyword\">void<\/span> <span class=\"hljs-title\">shanchu<\/span>(HttpServletRequest request,  \/\/\u5220\u9664\u56fe\u4e66\n            HttpServletResponse response) {\n        String id = request.getParameter(<span class=\"hljs-string\">\"id\"<\/span>);\n        bookDao mm = <span class=\"hljs-keyword\">new<\/span> bookDao();\n        mm.shanchu(id);\n        List&lt;book&gt; listt = mm.chaxun();\n        request.setAttribute(<span class=\"hljs-string\">\"listt\"<\/span>, listt);\n        <span class=\"hljs-keyword\">try<\/span> {\n            request.getRequestDispatcher(<span class=\"hljs-string\">\"\/chaxun.jsp\"<\/span>).forward(request,\n                    response);\n        } <span class=\"hljs-keyword\">catch<\/span> (ServletException e) {\n            <span class=\"hljs-comment\">\/\/ TODO Auto-generated catch block<\/span>\n            e.printStackTrace();\n        } <span class=\"hljs-keyword\">catch<\/span> (IOException e) {\n            <span class=\"hljs-comment\">\/\/ TODO Auto-generated catch block<\/span>\n            e.printStackTrace();\n        }\n\n    }\n\n    <span class=\"hljs-keyword\">private<\/span> <span class=\"hljs-keyword\">void<\/span> <span class=\"hljs-title\">chaxun<\/span>(HttpServletRequest request, HttpServletResponse response) {  <span class=\"hljs-comment\">\/\/\u56fe\u4e66\u67e5\u8be2<\/span>\n        bookDao mm = <span class=\"hljs-keyword\">new<\/span> bookDao();\n        List&lt;book&gt; listt = mm.chaxun();\n        request.setAttribute(<span class=\"hljs-string\">\"listt\"<\/span>, listt);\n        <span class=\"hljs-keyword\">try<\/span> {\n            request.getRequestDispatcher(<span class=\"hljs-string\">\"\/chaxun.jsp\"<\/span>).forward(request,\n                    response);\n        } <span class=\"hljs-keyword\">catch<\/span> (ServletException e) {\n            <span class=\"hljs-comment\">\/\/ TODO Auto-generated catch block<\/span>\n            e.printStackTrace();\n        } <span class=\"hljs-keyword\">catch<\/span> (IOException e) {\n            <span class=\"hljs-comment\">\/\/ TODO Auto-generated catch block<\/span>\n            e.printStackTrace();\n        }\n\n    }\n\n    <span class=\"hljs-keyword\">private<\/span> <span class=\"hljs-keyword\">void<\/span> <span class=\"hljs-title\">charu<\/span>(HttpServletRequest request, HttpServletResponse response) {  <span class=\"hljs-comment\">\/\/\u6dfb\u52a0\u56fe\u4e66<\/span>\n        String bookname = request.getParameter(<span class=\"hljs-string\">\"bookname\"<\/span>);\n        String author = request.getParameter(<span class=\"hljs-string\">\"author\"<\/span>);\n        String age = request.getParameter(<span class=\"hljs-string\">\"age\"<\/span>);\n        book shu = <span class=\"hljs-keyword\">new<\/span> book();\n        shu.setId(WebUtils.makeID());\n        shu.setBooknamee(bookname);\n        shu.setAuthorr(author);\n        shu.setAgee(Integer.parseInt(age));\n        bookDao mm = <span class=\"hljs-keyword\">new<\/span> bookDao();\n        mm.charu(shu);\n        <span class=\"hljs-keyword\">try<\/span> {\n            response.getWriter().write(<span class=\"hljs-string\">\"cha ru wan bi\"<\/span>);\n        } <span class=\"hljs-keyword\">catch<\/span> (IOException e) {\n            e.printStackTrace();\n        }\n    }\n\n    <span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-keyword\">void<\/span> <span class=\"hljs-title\">doPost<\/span>(HttpServletRequest request, HttpServletResponse response) \n            <span class=\"hljs-keyword\">throws<\/span> ServletException, IOException {\n        doGet(request, response);\n    }\n\n}\n<\/code><\/pre>\n<hr\/>\n<hr\/>\n<p>\n   dao\u5bf9\u8c61\uff1a\n  <\/p>\n<pre class=\"prettyprint\"><code class=\"hljs java\"><span class=\"hljs-keyword\">package<\/span> com.hai.dao;\n\n<span class=\"hljs-keyword\">import<\/span> java.awt.print.Book;\n<span class=\"hljs-keyword\">import<\/span> java.util.List;\n\n<span class=\"hljs-keyword\">import<\/span> org.apache.commons.dbutils.QueryRunner;\n<span class=\"hljs-keyword\">import<\/span> org.apache.commons.dbutils.handlers.BeanHandler;\n<span class=\"hljs-keyword\">import<\/span> org.apache.commons.dbutils.handlers.BeanListHandler;\n\n<span class=\"hljs-keyword\">import<\/span> com.hai.domain.book;\n<span class=\"hljs-keyword\">import<\/span> com.hai.utils.JdbcUtils;\n\n<span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-class\"><span class=\"hljs-keyword\">class<\/span> <span class=\"hljs-title\">bookDao<\/span> {<!-- --><\/span>\n\n      <span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-keyword\">void<\/span> <span class=\"hljs-title\">charu<\/span>(book book){  <span class=\"hljs-comment\">\/\/\u6dfb\u52a0\u4e00\u672c\u4e66<\/span>\n            <span class=\"hljs-keyword\">try<\/span>{\n                QueryRunner runner = <span class=\"hljs-keyword\">new<\/span> QueryRunner(JdbcUtils.getDataSource());\n                String sql = <span class=\"hljs-string\">\"insert into book(id,booknamee,authorr,agee) values(?,?,?,?)\"<\/span>;\n                Object params[] = {book.getId(),book.getBooknamee(),book.getAuthorr(),book.getAgee()};\n                runner.update(sql, params);\n            }<span class=\"hljs-keyword\">catch<\/span> (Exception e) {\n                <span class=\"hljs-keyword\">throw<\/span> <span class=\"hljs-keyword\">new<\/span> RuntimeException(e);\n            }\n        }\n\n\n      <span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-keyword\">void<\/span> <span class=\"hljs-title\">xiugai<\/span>(book book){<!-- --><span class=\"hljs-comment\">\/\/\u4fee\u6539\u67d0\u672c\u4e66  <\/span>\n            <span class=\"hljs-keyword\">try<\/span>{\n                QueryRunner runner = <span class=\"hljs-keyword\">new<\/span> QueryRunner(JdbcUtils.getDataSource());\n                String sql = <span class=\"hljs-string\">\"update book set booknamee=?,authorr=?,agee=? where id=? \"<\/span>;\n                Object params[] = {book.getBooknamee(),book.getAuthorr(),book.getAgee(),book.getId()};\n                runner.update(sql, params);\n            }<span class=\"hljs-keyword\">catch<\/span> (Exception e) {\n                <span class=\"hljs-keyword\">throw<\/span> <span class=\"hljs-keyword\">new<\/span> RuntimeException(e);\n            }\n        }\n\n      <span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-keyword\">void<\/span> <span class=\"hljs-title\">shanchu<\/span>(String id){ <span class=\"hljs-comment\">\/\/\u5220\u9664\u5177\u4f53ID\u6240\u5bf9\u5e94\u7684\u56fe\u4e66<\/span>\n            <span class=\"hljs-keyword\">try<\/span>{\n                QueryRunner runner = <span class=\"hljs-keyword\">new<\/span> QueryRunner(JdbcUtils.getDataSource());\n                String sql = <span class=\"hljs-string\">\"delete from book where id=?\"<\/span>;          \n                runner.update(sql, id);\n            }<span class=\"hljs-keyword\">catch<\/span> (Exception e) {\n                <span class=\"hljs-keyword\">throw<\/span> <span class=\"hljs-keyword\">new<\/span> RuntimeException(e);\n            }\n        }\n\n      <span class=\"hljs-keyword\">public<\/span> List&lt;book&gt; <span class=\"hljs-title\">chaxun<\/span>(){  <span class=\"hljs-comment\">\/\/\u67e5\u8be2\u6240\u6709\u56fe\u4e66<\/span>\n            <span class=\"hljs-keyword\">try<\/span>{\n                QueryRunner runner = <span class=\"hljs-keyword\">new<\/span> QueryRunner(JdbcUtils.getDataSource());\n                String sql = <span class=\"hljs-string\">\"select * from book\"<\/span>;\n\n              List&lt;book&gt; listt=  (List&lt;book&gt;) runner.query(sql, <span class=\"hljs-keyword\">new<\/span> BeanListHandler(book.class));\n              <span class=\"hljs-keyword\">return<\/span> listt;\n            }<span class=\"hljs-keyword\">catch<\/span> (Exception e) {\n                <span class=\"hljs-keyword\">throw<\/span> <span class=\"hljs-keyword\">new<\/span> RuntimeException(e);\n            }\n        }\n\n      <span class=\"hljs-keyword\">public<\/span> book <span class=\"hljs-title\">chaxun<\/span>(String id){  <span class=\"hljs-comment\">\/\/\u67e5\u8be2\u5177\u4f53ID\u6240\u5bf9\u5e94\u7684\u4e66<\/span>\n            <span class=\"hljs-keyword\">try<\/span>{\n                QueryRunner runner = <span class=\"hljs-keyword\">new<\/span> QueryRunner(JdbcUtils.getDataSource());\n                String sql = <span class=\"hljs-string\">\"select * from book where id=?\"<\/span>;\n\n              book shu= (book) runner.query(sql,id,<span class=\"hljs-keyword\">new<\/span> BeanHandler(book.class));\n              <span class=\"hljs-keyword\">return<\/span> shu;\n            }<span class=\"hljs-keyword\">catch<\/span> (Exception e) {\n                <span class=\"hljs-keyword\">throw<\/span> <span class=\"hljs-keyword\">new<\/span> RuntimeException(e);\n            }\n        }     \n}\n<\/code><\/pre>\n<hr\/>\n<hr\/>\n<p>\n   \u5c01\u88c5book\u7684\u6570\u636e\u5b9e\u4f53\uff08domain):\n  <\/p>\n<pre class=\"prettyprint\"><code class=\"hljs cs\">package com.hai.domain;\n\n<span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-keyword\">class<\/span> book {\n    <span class=\"hljs-keyword\">private<\/span> String id;\n<span class=\"hljs-keyword\">private<\/span> String  booknamee;\n<span class=\"hljs-keyword\">private<\/span> String  authorr;\n<span class=\"hljs-keyword\">private<\/span> <span class=\"hljs-keyword\">int<\/span> agee;\n<span class=\"hljs-keyword\">public<\/span> String <span class=\"hljs-title\">getBooknamee<\/span>() {\n    <span class=\"hljs-keyword\">return<\/span> booknamee;\n}\n<span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-keyword\">void<\/span> <span class=\"hljs-title\">setBooknamee<\/span>(String booknamee) {\n    <span class=\"hljs-keyword\">this<\/span>.booknamee = booknamee;\n}\n<span class=\"hljs-keyword\">public<\/span> String <span class=\"hljs-title\">getId<\/span>() {\n    <span class=\"hljs-keyword\">return<\/span> id;\n}\n<span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-keyword\">void<\/span> <span class=\"hljs-title\">setId<\/span>(String id) {\n    <span class=\"hljs-keyword\">this<\/span>.id = id;\n}\n<span class=\"hljs-keyword\">public<\/span> String <span class=\"hljs-title\">getAuthorr<\/span>() {\n    <span class=\"hljs-keyword\">return<\/span> authorr;\n}\n<span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-keyword\">void<\/span> <span class=\"hljs-title\">setAuthorr<\/span>(String authorr) {\n    <span class=\"hljs-keyword\">this<\/span>.authorr = authorr;\n}\n<span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-keyword\">int<\/span> <span class=\"hljs-title\">getAgee<\/span>() {\n    <span class=\"hljs-keyword\">return<\/span> agee;\n}\n<span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-keyword\">void<\/span> <span class=\"hljs-title\">setAgee<\/span>(<span class=\"hljs-keyword\">int<\/span> agee) {\n    <span class=\"hljs-keyword\">this<\/span>.agee = agee;\n}\n\n}\n<\/code><\/pre>\n<hr\/>\n<p>\n   \u89e3\u51b3\u5168\u7ad9\u5b57\u7b26\u7f16\u7801\u7684\u8fc7\u6ee4\u5668\uff1a\n  <\/p>\n<pre class=\"prettyprint\"><code class=\"hljs java\"><span class=\"hljs-keyword\">package<\/span> com.hai.filters;\n\n<span class=\"hljs-keyword\">import<\/span> java.io.BufferedReader;\n<span class=\"hljs-keyword\">import<\/span> java.io.IOException;\n<span class=\"hljs-keyword\">import<\/span> java.io.UnsupportedEncodingException;\n<span class=\"hljs-keyword\">import<\/span> java.security.Principal;\n<span class=\"hljs-keyword\">import<\/span> java.util.Enumeration;\n<span class=\"hljs-keyword\">import<\/span> java.util.Locale;\n<span class=\"hljs-keyword\">import<\/span> java.util.Map;\n\n<span class=\"hljs-keyword\">import<\/span> javax.servlet.Filter;\n<span class=\"hljs-keyword\">import<\/span> javax.servlet.FilterChain;\n<span class=\"hljs-keyword\">import<\/span> javax.servlet.FilterConfig;\n<span class=\"hljs-keyword\">import<\/span> javax.servlet.RequestDispatcher;\n<span class=\"hljs-keyword\">import<\/span> javax.servlet.ServletException;\n<span class=\"hljs-keyword\">import<\/span> javax.servlet.ServletInputStream;\n<span class=\"hljs-keyword\">import<\/span> javax.servlet.ServletRequest;\n<span class=\"hljs-keyword\">import<\/span> javax.servlet.ServletResponse;\n<span class=\"hljs-keyword\">import<\/span> javax.servlet.http.Cookie;\n<span class=\"hljs-keyword\">import<\/span> javax.servlet.http.HttpServletRequest;\n<span class=\"hljs-keyword\">import<\/span> javax.servlet.http.HttpServletRequestWrapper;\n<span class=\"hljs-keyword\">import<\/span> javax.servlet.http.HttpServletResponse;\n<span class=\"hljs-keyword\">import<\/span> javax.servlet.http.HttpSession;\n\n<span class=\"hljs-comment\">\/\/\u4e3a\u89e3\u51b3\u5168\u7ad9\u4e71\u7801<\/span>\n<span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-class\"><span class=\"hljs-keyword\">class<\/span> <span class=\"hljs-title\">character<\/span> <span class=\"hljs-keyword\">implements<\/span> <span class=\"hljs-title\">Filter<\/span> {<!-- --><\/span>\n\n    <span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-keyword\">void<\/span> <span class=\"hljs-title\">destroy<\/span>() {\n        <span class=\"hljs-comment\">\/\/ TODO Auto-generated method stub<\/span>\n\n    }\n\n    <span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-keyword\">void<\/span> <span class=\"hljs-title\">doFilter<\/span>(ServletRequest req, ServletResponse resp,\n            FilterChain chain) <span class=\"hljs-keyword\">throws<\/span> IOException, ServletException {\n\n        HttpServletRequest request = (HttpServletRequest) req;\n        HttpServletResponse response = (HttpServletResponse) resp;\n        request.setCharacterEncoding(<span class=\"hljs-string\">\"utf-8\"<\/span>);\n        response.setCharacterEncoding(<span class=\"hljs-string\">\"utf-8\"<\/span>);\n        response.setContentType(<span class=\"hljs-string\">\"text\/html;charset=utf-8\"<\/span>);\n\n        MyCharacterEncodingRequest requestWrapper = <span class=\"hljs-keyword\">new<\/span> MyCharacterEncodingRequest(\n                request);\n        chain.doFilter(requestWrapper, response);\n\n    }\n\n    <span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-keyword\">void<\/span> <span class=\"hljs-title\">init<\/span>(FilterConfig filterConfig) <span class=\"hljs-keyword\">throws<\/span> ServletException {\n        <span class=\"hljs-comment\">\/\/ TODO Auto-generated method stub<\/span>\n\n    }\n}\n\n<span class=\"hljs-comment\">\/*\n * 1.\u5b9e\u73b0\u4e0e\u88ab\u589e\u5f3a\u5bf9\u8c61\u76f8\u540c\u7684\u63a5\u53e3 2\u3001\u5b9a\u4e49\u4e00\u4e2a\u53d8\u91cf\u8bb0\u4f4f\u88ab\u589e\u5f3a\u5bf9\u8c61 3\u3001\u5b9a\u4e49\u4e00\u4e2a\u6784\u9020\u5668\uff0c\u63a5\u6536\u88ab\u589e\u5f3a\u5bf9\u8c61 4\u3001\u8986\u76d6\u9700\u8981\u589e\u5f3a\u7684\u65b9\u6cd5\n * 5\u3001\u5bf9\u4e8e\u4e0d\u60f3\u589e\u5f3a\u7684\u65b9\u6cd5\uff0c\u76f4\u63a5\u8c03\u7528\u88ab\u589e\u5f3a\u5bf9\u8c61\uff08\u76ee\u6807\u5bf9\u8c61\uff09\u7684\u65b9\u6cd5\n *\/<\/span>\n\nclass MyCharacterEncodingRequest extends HttpServletRequestWrapper {\n\n    <span class=\"hljs-keyword\">private<\/span> HttpServletRequest request;\n\n    <span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-title\">MyCharacterEncodingRequest<\/span>(HttpServletRequest request) {\n        <span class=\"hljs-keyword\">super<\/span>(request);\n        <span class=\"hljs-keyword\">this<\/span>.request = request;\n    }\n\n    <span class=\"hljs-annotation\">@Override<\/span>\n    <span class=\"hljs-keyword\">public<\/span> String <span class=\"hljs-title\">getParameter<\/span>(String name) {\n\n        <span class=\"hljs-keyword\">try<\/span> {\n            String value = <span class=\"hljs-keyword\">this<\/span>.request.getParameter(name);\n            <span class=\"hljs-keyword\">if<\/span> (value == <span class=\"hljs-keyword\">null<\/span>) {\n                <span class=\"hljs-keyword\">return<\/span> <span class=\"hljs-keyword\">null<\/span>;\n            }\n\n            <span class=\"hljs-keyword\">if<\/span> (!<span class=\"hljs-keyword\">this<\/span>.request.getMethod().equalsIgnoreCase(<span class=\"hljs-string\">\"get\"<\/span>)) {\n                <span class=\"hljs-keyword\">return<\/span> value;\n            }\n\n            value = <span class=\"hljs-keyword\">new<\/span> String(value.getBytes(<span class=\"hljs-string\">\"ISO8859-1\"<\/span>),\n                    <span class=\"hljs-keyword\">this<\/span>.request.getCharacterEncoding());\n            <span class=\"hljs-keyword\">return<\/span> value;\n\n        } <span class=\"hljs-keyword\">catch<\/span> (Exception e) {\n            <span class=\"hljs-keyword\">throw<\/span> <span class=\"hljs-keyword\">new<\/span> RuntimeException(e);\n        }\n    }\n}<\/code><\/pre>\n<hr\/>\n<p>\n   web.xml\n  <\/p>\n<pre class=\"prettyprint\"><code class=\"hljs xml\"><span class=\"hljs-pi\">&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;<\/span>\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">web-app<\/span> <span class=\"hljs-attribute\">version<\/span>=<span class=\"hljs-value\">\"3.0\"<\/span> \n    <span class=\"hljs-attribute\">xmlns<\/span>=<span class=\"hljs-value\">\"http:\/\/java.sun.com\/xml\/ns\/javaee\"<\/span> \n    <span class=\"hljs-attribute\">xmlns:xsi<\/span>=<span class=\"hljs-value\">\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\"<\/span> \n    <span class=\"hljs-attribute\">xsi:schemaLocation<\/span>=<span class=\"hljs-value\">\"http:\/\/java.sun.com\/xml\/ns\/javaee \n    http:\/\/java.sun.com\/xml\/ns\/javaee\/web-app_3_0.xsd\"<\/span>&gt;<\/span>\n  <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">display-name<\/span>&gt;<\/span><span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">display-name<\/span>&gt;<\/span>\n  <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">filter<\/span>&gt;<\/span>\n  <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">filter-name<\/span>&gt;<\/span>haitao<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">filter-name<\/span>&gt;<\/span>\n  <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">filter-class<\/span>&gt;<\/span>com.hai.filters.character<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">filter-class<\/span>&gt;<\/span>\n  <span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">filter<\/span>&gt;<\/span>\n  <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">filter-mapping<\/span>&gt;<\/span>\n  <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">filter-name<\/span>&gt;<\/span>haitao<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">filter-name<\/span>&gt;<\/span>\n  <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">url-pattern<\/span>&gt;<\/span>\/*<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">url-pattern<\/span>&gt;<\/span>\n  <span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">filter-mapping<\/span>&gt;<\/span>\n  <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">servlet<\/span>&gt;<\/span>\n    <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">description<\/span>&gt;<\/span>This is the description of my J2EE component<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">description<\/span>&gt;<\/span>\n    <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">display-name<\/span>&gt;<\/span>This is the display name of my J2EE component<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">display-name<\/span>&gt;<\/span>\n    <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">servlet-name<\/span>&gt;<\/span>bookServlet<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">servlet-name<\/span>&gt;<\/span>\n    <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">servlet-class<\/span>&gt;<\/span>com.hai.servlet.bookServlet<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">servlet-class<\/span>&gt;<\/span>\n  <span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">servlet<\/span>&gt;<\/span>\n\n  <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">servlet-mapping<\/span>&gt;<\/span>\n    <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">servlet-name<\/span>&gt;<\/span>bookServlet<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">servlet-name<\/span>&gt;<\/span>\n    <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">url-pattern<\/span>&gt;<\/span>\/servlet\/bookServlet<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">url-pattern<\/span>&gt;<\/span>\n  <span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">servlet-mapping<\/span>&gt;<\/span>    \n  <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">welcome-file-list<\/span>&gt;<\/span>\n    <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">welcome-file<\/span>&gt;<\/span>index.jsp<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">welcome-file<\/span>&gt;<\/span>\n  <span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">welcome-file-list<\/span>&gt;<\/span>\n<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">web-app<\/span>&gt;<\/span><\/code><\/pre>\n<hr\/>\n<hr\/>\n<p>\n   \u63d0\u4f9b\u8fde\u63a5\u6c60\u7684\u5de5\u5177\u7c7b\uff1a\n  <\/p>\n<pre class=\"prettyprint\"><code class=\"hljs java\"><span class=\"hljs-keyword\">package<\/span> com.hai.utils;\n\n<span class=\"hljs-keyword\">import<\/span> java.sql.Connection;\n<span class=\"hljs-keyword\">import<\/span> java.sql.SQLException;\n\n<span class=\"hljs-keyword\">import<\/span> javax.sql.DataSource;\n\n<span class=\"hljs-keyword\">import<\/span> com.mchange.v2.c3p0.ComboPooledDataSource;\n\n<span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-class\"><span class=\"hljs-keyword\">class<\/span> <span class=\"hljs-title\">JdbcUtils<\/span> {<!-- --><\/span>\n    <span class=\"hljs-keyword\">private<\/span> <span class=\"hljs-keyword\">static<\/span> DataSource ds = <span class=\"hljs-keyword\">null<\/span>;\n    <span class=\"hljs-keyword\">static<\/span>{\n        ds = <span class=\"hljs-keyword\">new<\/span> ComboPooledDataSource();\n    }\n\n    <span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-keyword\">static<\/span> DataSource <span class=\"hljs-title\">getDataSource<\/span>(){\n        <span class=\"hljs-keyword\">return<\/span> ds;\n    }\n\n    <span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-keyword\">static<\/span> Connection <span class=\"hljs-title\">getConnection<\/span>() <span class=\"hljs-keyword\">throws<\/span> SQLException{\n        <span class=\"hljs-keyword\">return<\/span> ds.getConnection();\n    }\n}\n<\/code><\/pre>\n<hr\/>\n<hr\/>\n<p>\n   UUID\u5b57\u7b26\u4e32\u7c7b\uff1a\n  <\/p>\n<pre class=\"prettyprint\"><code class=\"hljs java\"><span class=\"hljs-keyword\">package<\/span> com.hai.utils;\n\n<span class=\"hljs-keyword\">import<\/span> java.util.UUID;\n\n<span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-class\"><span class=\"hljs-keyword\">class<\/span> <span class=\"hljs-title\">WebUtils<\/span> {<!-- --><\/span>\n\n    <span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-keyword\">static<\/span> String <span class=\"hljs-title\">makeID<\/span>(){\n        <span class=\"hljs-keyword\">return<\/span> UUID.randomUUID().toString();\n    }\n}\n<\/code><\/pre>\n<hr\/>\n<hr\/>\n<p>\n   c3p0-config.xml \u5982\u4e0b\uff1a\n  <\/p>\n<pre class=\"prettyprint\"><code class=\"hljs xml\"><span class=\"hljs-pi\">&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;<\/span>\n\n\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">c3p0-config<\/span>&gt;<\/span>\n    <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">default-config<\/span>&gt;<\/span>\n        <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">property<\/span> <span class=\"hljs-attribute\">name<\/span>=<span class=\"hljs-value\">\"driverClass\"<\/span>&gt;<\/span>com.mysql.jdbc.Driver<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">property<\/span>&gt;<\/span>\n        <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">property<\/span> <span class=\"hljs-attribute\">name<\/span>=<span class=\"hljs-value\">\"jdbcUrl\"<\/span>&gt;<\/span>jdbc:mysql:\/\/localhost:3306\/xuhaitao<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">property<\/span>&gt;<\/span>\n        <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">property<\/span> <span class=\"hljs-attribute\">name<\/span>=<span class=\"hljs-value\">\"user\"<\/span>&gt;<\/span>root<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">property<\/span>&gt;<\/span>\n        <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">property<\/span> <span class=\"hljs-attribute\">name<\/span>=<span class=\"hljs-value\">\"password\"<\/span>&gt;<\/span>root<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">property<\/span>&gt;<\/span>\n\n        <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">property<\/span> <span class=\"hljs-attribute\">name<\/span>=<span class=\"hljs-value\">\"acquireIncrement\"<\/span>&gt;<\/span>5<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">property<\/span>&gt;<\/span>\n        <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">property<\/span> <span class=\"hljs-attribute\">name<\/span>=<span class=\"hljs-value\">\"initialPoolSize\"<\/span>&gt;<\/span>10<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">property<\/span>&gt;<\/span>\n        <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">property<\/span> <span class=\"hljs-attribute\">name<\/span>=<span class=\"hljs-value\">\"minPoolSize\"<\/span>&gt;<\/span>5<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">property<\/span>&gt;<\/span>\n        <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">property<\/span> <span class=\"hljs-attribute\">name<\/span>=<span class=\"hljs-value\">\"maxPoolSize\"<\/span>&gt;<\/span>20<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">property<\/span>&gt;<\/span>\n\n\n    <span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">default-config<\/span>&gt;<\/span>\n\n    <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">named-config<\/span> <span class=\"hljs-attribute\">name<\/span>=<span class=\"hljs-value\">\"flx\"<\/span>&gt;<\/span>\n        <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">property<\/span> <span class=\"hljs-attribute\">name<\/span>=<span class=\"hljs-value\">\"driverClass\"<\/span>&gt;<\/span>com.mysql.jdbc.Driver<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">property<\/span>&gt;<\/span>\n        <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">property<\/span> <span class=\"hljs-attribute\">name<\/span>=<span class=\"hljs-value\">\"jdbcUrl\"<\/span>&gt;<\/span>jdbc:mysql:\/\/localhost:3306\/day16<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">property<\/span>&gt;<\/span>\n        <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">property<\/span> <span class=\"hljs-attribute\">name<\/span>=<span class=\"hljs-value\">\"user\"<\/span>&gt;<\/span>root<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">property<\/span>&gt;<\/span>\n        <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">property<\/span> <span class=\"hljs-attribute\">name<\/span>=<span class=\"hljs-value\">\"password\"<\/span>&gt;<\/span>root<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">property<\/span>&gt;<\/span>\n        <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">property<\/span> <span class=\"hljs-attribute\">name<\/span>=<span class=\"hljs-value\">\"acquireIncrement\"<\/span>&gt;<\/span>50<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">property<\/span>&gt;<\/span>\n        <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">property<\/span> <span class=\"hljs-attribute\">name<\/span>=<span class=\"hljs-value\">\"initialPoolSize\"<\/span>&gt;<\/span>100<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">property<\/span>&gt;<\/span>\n        <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">property<\/span> <span class=\"hljs-attribute\">name<\/span>=<span class=\"hljs-value\">\"minPoolSize\"<\/span>&gt;<\/span>50<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">property<\/span>&gt;<\/span>\n        <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">property<\/span> <span class=\"hljs-attribute\">name<\/span>=<span class=\"hljs-value\">\"maxPoolSize\"<\/span>&gt;<\/span>1000<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">property<\/span>&gt;<\/span><span class=\"hljs-comment\">&lt;!-- intergalactoApp adopts a different approach to configuring statement caching --&gt;<\/span>\n    <span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">named-config<\/span>&gt;<\/span>\n\n<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">c3p0-config<\/span>&gt;<\/span>\n<\/code><\/pre>\n<hr\/>\n<p>\n   charu.jsp\n  <\/p>\n<pre class=\"prettyprint\"><code class=\"hljs xml\"><span class=\"vbscript\">&lt;%@ page language=<span class=\"hljs-string\">\"java\"<\/span> import=<span class=\"hljs-string\">\"java.util.*\"<\/span> pageEncoding=<span class=\"hljs-string\">\"utf-8\"<\/span>%&gt;<\/span>\n\n<span class=\"hljs-doctype\">&lt;!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.01 Transitional\/\/EN\"&gt;<\/span>\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">html<\/span>&gt;<\/span>\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">head<\/span>&gt;<\/span>\n\n\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">title<\/span>&gt;<\/span>My JSP 'charu.jsp' starting page<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">title<\/span>&gt;<\/span>\n\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">meta<\/span> <span class=\"hljs-attribute\">http-equiv<\/span>=<span class=\"hljs-value\">\"pragma\"<\/span> <span class=\"hljs-attribute\">content<\/span>=<span class=\"hljs-value\">\"no-cache\"<\/span>&gt;<\/span>\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">meta<\/span> <span class=\"hljs-attribute\">http-equiv<\/span>=<span class=\"hljs-value\">\"cache-control\"<\/span> <span class=\"hljs-attribute\">content<\/span>=<span class=\"hljs-value\">\"no-cache\"<\/span>&gt;<\/span>\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">meta<\/span> <span class=\"hljs-attribute\">http-equiv<\/span>=<span class=\"hljs-value\">\"expires\"<\/span> <span class=\"hljs-attribute\">content<\/span>=<span class=\"hljs-value\">\"0\"<\/span>&gt;<\/span>\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">meta<\/span> <span class=\"hljs-attribute\">http-equiv<\/span>=<span class=\"hljs-value\">\"keywords\"<\/span> <span class=\"hljs-attribute\">content<\/span>=<span class=\"hljs-value\">\"keyword1,keyword2,keyword3\"<\/span>&gt;<\/span>\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">meta<\/span> <span class=\"hljs-attribute\">http-equiv<\/span>=<span class=\"hljs-value\">\"description\"<\/span> <span class=\"hljs-attribute\">content<\/span>=<span class=\"hljs-value\">\"This is my page\"<\/span>&gt;<\/span>\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">link<\/span> <span class=\"hljs-attribute\">rel<\/span>=<span class=\"hljs-value\">\"stylesheet\"<\/span> <span class=\"hljs-attribute\">type<\/span>=<span class=\"hljs-value\">\"text\/css\"<\/span> <span class=\"hljs-attribute\">href<\/span>=<span class=\"hljs-value\">\"css\/bootstrap.min.css\"<\/span>&gt;<\/span>\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">link<\/span> <span class=\"hljs-attribute\">rel<\/span>=<span class=\"hljs-value\">\"stylesheet\"<\/span> <span class=\"hljs-attribute\">type<\/span>=<span class=\"hljs-value\">\"text\/css\"<\/span> <span class=\"hljs-attribute\">href<\/span>=<span class=\"hljs-value\">\"css\/style.min.css\"<\/span>&gt;<\/span>\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">script<\/span> <span class=\"hljs-attribute\">type<\/span>=<span class=\"hljs-value\">\"text\/javascript\"<\/span> <span class=\"hljs-attribute\">src<\/span>=<span class=\"hljs-value\">\"js\/jquery-2.1.1.js\"<\/span>&gt;<\/span><span class=\"javascript\"><\/span><span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">script<\/span>&gt;<\/span>\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">script<\/span> <span class=\"hljs-attribute\">type<\/span>=<span class=\"hljs-value\">\"text\/javascript\"<\/span> <span class=\"hljs-attribute\">src<\/span>=<span class=\"hljs-value\">\"js\/bootstrap.min.js\"<\/span>&gt;<\/span><span class=\"javascript\"><\/span><span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">script<\/span>&gt;<\/span>\n<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">head<\/span>&gt;<\/span>\n\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">body<\/span> <span class=\"hljs-attribute\">class<\/span>=<span class=\"hljs-value\">\"container\"<\/span>&gt;<\/span>\n    <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">form<\/span> <span class=\"hljs-attribute\">method<\/span>=<span class=\"hljs-value\">\"post\"<\/span>\n        <span class=\"hljs-attribute\">action<\/span>=<span class=\"hljs-value\">\"${pageContext.request.contextPath}\/servlet\/bookServlet?type=charu\"<\/span>&gt;<\/span>\n        <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">div<\/span> <span class=\"hljs-attribute\">class<\/span>=<span class=\"hljs-value\">\"form-group\"<\/span>&gt;<\/span>\n            <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">label<\/span> <span class=\"hljs-attribute\">class<\/span>=<span class=\"hljs-value\">\"control-label\"<\/span>&gt;<\/span>\u4e66\u540d\uff1a<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">label<\/span>&gt;<\/span> <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">input<\/span> <span class=\"hljs-attribute\">type<\/span>=<span class=\"hljs-value\">\"text\"<\/span>\n                <span class=\"hljs-attribute\">class<\/span>=<span class=\"hljs-value\">\"form-control\"<\/span> <span class=\"hljs-attribute\">name<\/span>=<span class=\"hljs-value\">\"bookname\"<\/span> \/&gt;<\/span>\n        <span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">div<\/span>&gt;<\/span>\n        <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">div<\/span> <span class=\"hljs-attribute\">class<\/span>=<span class=\"hljs-value\">\"form-group\"<\/span>&gt;<\/span>\n            <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">label<\/span> <span class=\"hljs-attribute\">class<\/span>=<span class=\"hljs-value\">\"control-label\"<\/span>&gt;<\/span>\u4f5c\u8005\uff1a<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">label<\/span>&gt;<\/span> <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">input<\/span> <span class=\"hljs-attribute\">type<\/span>=<span class=\"hljs-value\">\"text\"<\/span>\n                <span class=\"hljs-attribute\">class<\/span>=<span class=\"hljs-value\">\"form-control\"<\/span> <span class=\"hljs-attribute\">name<\/span>=<span class=\"hljs-value\">\"author\"<\/span> \/&gt;<\/span>\n        <span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">div<\/span>&gt;<\/span>\n        <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">div<\/span> <span class=\"hljs-attribute\">class<\/span>=<span class=\"hljs-value\">\"form-group\"<\/span>&gt;<\/span>\n            <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">label<\/span> <span class=\"hljs-attribute\">class<\/span>=<span class=\"hljs-value\">\"control-label\"<\/span>&gt;<\/span>\u5e74\u9f84\uff1a<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">label<\/span>&gt;<\/span> <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">input<\/span> <span class=\"hljs-attribute\">type<\/span>=<span class=\"hljs-value\">\"text\"<\/span>\n                <span class=\"hljs-attribute\">class<\/span>=<span class=\"hljs-value\">\"form-control\"<\/span> <span class=\"hljs-attribute\">name<\/span>=<span class=\"hljs-value\">\"age\"<\/span> \/&gt;<\/span>\n        <span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">div<\/span>&gt;<\/span>\n        <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">div<\/span> <span class=\"hljs-attribute\">class<\/span>=<span class=\"hljs-value\">\"form-group\"<\/span>&gt;<\/span>\n            <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">input<\/span> <span class=\"hljs-attribute\">type<\/span>=<span class=\"hljs-value\">\"submit\"<\/span> <span class=\"hljs-attribute\">value<\/span>=<span class=\"hljs-value\">\"\u63d0\u4ea4\"<\/span> <span class=\"hljs-attribute\">class<\/span>=<span class=\"hljs-value\">\"btn btn-primary\"<\/span> \/&gt;<\/span>\n        <span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">div<\/span>&gt;<\/span>\n    <span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">form<\/span>&gt;<\/span>\n<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">body<\/span>&gt;<\/span>\n<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">html<\/span>&gt;<\/span><\/code><\/pre>\n<hr\/>\n<hr\/>\n<p>\n   chaxun.jsp\n  <\/p>\n<hr\/>\n<pre class=\"prettyprint\"><code class=\"hljs xml\"><span class=\"vbscript\">&lt;%@ page language=<span class=\"hljs-string\">\"java\"<\/span> import=<span class=\"hljs-string\">\"java.util.*\"<\/span> pageEncoding=<span class=\"hljs-string\">\"utf-8\"<\/span>%&gt;<\/span>\n<span class=\"vbscript\">&lt;%@ taglib uri=<span class=\"hljs-string\">\"http:\/\/java.sun.com\/jsp\/jstl\/core\"<\/span> prefix=<span class=\"hljs-string\">\"c\"<\/span>%&gt;<\/span>\n\n<span class=\"hljs-doctype\">&lt;!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.01 Transitional\/\/EN\"&gt;<\/span>\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">html<\/span>&gt;<\/span>\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">head<\/span>&gt;<\/span>\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">title<\/span>&gt;<\/span>My JSP 'chaxun.jsp' starting page<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">title<\/span>&gt;<\/span>\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">meta<\/span> <span class=\"hljs-attribute\">http-equiv<\/span>=<span class=\"hljs-value\">\"pragma\"<\/span> <span class=\"hljs-attribute\">content<\/span>=<span class=\"hljs-value\">\"no-cache\"<\/span>&gt;<\/span>\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">meta<\/span> <span class=\"hljs-attribute\">http-equiv<\/span>=<span class=\"hljs-value\">\"cache-control\"<\/span> <span class=\"hljs-attribute\">content<\/span>=<span class=\"hljs-value\">\"no-cache\"<\/span>&gt;<\/span>\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">meta<\/span> <span class=\"hljs-attribute\">http-equiv<\/span>=<span class=\"hljs-value\">\"expires\"<\/span> <span class=\"hljs-attribute\">content<\/span>=<span class=\"hljs-value\">\"0\"<\/span>&gt;<\/span>\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">meta<\/span> <span class=\"hljs-attribute\">http-equiv<\/span>=<span class=\"hljs-value\">\"keywords\"<\/span> <span class=\"hljs-attribute\">content<\/span>=<span class=\"hljs-value\">\"keyword1,keyword2,keyword3\"<\/span>&gt;<\/span>\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">meta<\/span> <span class=\"hljs-attribute\">http-equiv<\/span>=<span class=\"hljs-value\">\"description\"<\/span> <span class=\"hljs-attribute\">content<\/span>=<span class=\"hljs-value\">\"This is my page\"<\/span>&gt;<\/span>\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">link<\/span> <span class=\"hljs-attribute\">rel<\/span>=<span class=\"hljs-value\">\"stylesheet\"<\/span>\n    <span class=\"hljs-attribute\">href<\/span>=<span class=\"hljs-value\">\"http:\/\/cdn.static.runoob.com\/libs\/bootstrap\/3.3.7\/css\/bootstrap.min.css\"<\/span>&gt;<\/span>\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">script<\/span>\n    <span class=\"hljs-attribute\">src<\/span>=<span class=\"hljs-value\">\"http:\/\/cdn.static.runoob.com\/libs\/jquery\/2.1.1\/jquery.min.js\"<\/span>&gt;<\/span><span class=\"javascript\"><\/span><span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">script<\/span>&gt;<\/span>\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">script<\/span>\n    <span class=\"hljs-attribute\">src<\/span>=<span class=\"hljs-value\">\"http:\/\/cdn.static.runoob.com\/libs\/bootstrap\/3.3.7\/js\/bootstrap.min.js\"<\/span>&gt;<\/span><span class=\"javascript\"><\/span><span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">script<\/span>&gt;<\/span>\n\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">style<\/span> <span class=\"hljs-attribute\">type<\/span>=<span class=\"hljs-value\">\"text\/css\"<\/span>&gt;<\/span><span class=\"css\">\n<span class=\"hljs-tag\">td<\/span><span class=\"hljs-rules\">{\n\u3000\u3000<span class=\"hljs-rule\"><span class=\"hljs-attribute\">vertical-align<\/span>:<span class=\"hljs-value\"> middle <span class=\"hljs-important\">!important<\/span><\/span><\/span>;\n<span class=\"hljs-rule\">}<\/span><\/span>\n<\/span><span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">style<\/span>&gt;<\/span>\n<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">head<\/span>&gt;<\/span>\n\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">body<\/span> <span class=\"hljs-attribute\">class<\/span>=<span class=\"hljs-value\">\"container\"<\/span>&gt;<\/span>\n    <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">table<\/span> <span class=\"hljs-attribute\">class<\/span>=<span class=\"hljs-value\">\"table\"<\/span>&gt;<\/span>\n        <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">tr<\/span>&gt;<\/span>\n            <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">td<\/span> <span class=\"hljs-attribute\">style<\/span>=<span class=\"hljs-value\">\"padding:30px;\"<\/span>&gt;<\/span>\u4e66\u540d<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">td<\/span>&gt;<\/span>\n            <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">td<\/span> <span class=\"hljs-attribute\">style<\/span>=<span class=\"hljs-value\">\"padding:30px;\"<\/span>&gt;<\/span>\u4f5c\u8005<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">td<\/span>&gt;<\/span>\n            <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">td<\/span> <span class=\"hljs-attribute\">style<\/span>=<span class=\"hljs-value\">\"padding:30px;\"<\/span>&gt;<\/span>\u5e74\u9f84<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">td<\/span>&gt;<\/span>\n            <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">td<\/span> <span class=\"hljs-attribute\">style<\/span>=<span class=\"hljs-value\">\"padding:30px;\"<\/span> <span class=\"hljs-attribute\">align<\/span>=<span class=\"hljs-value\">\"left\"<\/span>&gt;<\/span>\u64cd\u4f5c<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">td<\/span>&gt;<\/span>\n        <span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">tr<\/span>&gt;<\/span>\n        <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">c:forEach<\/span> <span class=\"hljs-attribute\">var<\/span>=<span class=\"hljs-value\">\"mm\"<\/span> <span class=\"hljs-attribute\">items<\/span>=<span class=\"hljs-value\">\"${listt }\"<\/span>&gt;<\/span>\n            <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">tr<\/span>&gt;<\/span>\n                <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">td<\/span> <span class=\"hljs-attribute\">style<\/span>=<span class=\"hljs-value\">\"padding:30px;\"<\/span>&gt;<\/span>${mm.booknamee }<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">td<\/span>&gt;<\/span>\n                <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">td<\/span> <span class=\"hljs-attribute\">style<\/span>=<span class=\"hljs-value\">\"padding:30px;\"<\/span>&gt;<\/span>${mm.authorr}<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">td<\/span>&gt;<\/span>\n                <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">td<\/span> <span class=\"hljs-attribute\">style<\/span>=<span class=\"hljs-value\">\"padding:30px;\"<\/span>&gt;<\/span>${mm.agee }<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">td<\/span>&gt;<\/span>\n                <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">td<\/span> <span class=\"hljs-attribute\">align<\/span>=<span class=\"hljs-value\">\"left\"<\/span> <span class=\"hljs-attribute\">style<\/span>=<span class=\"hljs-value\">\"padding-left:25px;\"<\/span>&gt;<\/span><span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">a<\/span> <span class=\"hljs-attribute\">class<\/span>=<span class=\"hljs-value\">\"btn btn-primary btn-sm\"<\/span> <span class=\"hljs-attribute\">href<\/span>=<span class=\"hljs-value\">\"${pageContext.request.contextPath}\/servlet\/bookServlet?type=shan&amp;id=${mm.id}\"<\/span>&gt;<\/span>\u5220\u9664<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">a<\/span>&gt;<\/span><span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">br<\/span>&gt;<\/span>\n                <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">a<\/span> <span class=\"hljs-attribute\">style<\/span>=<span class=\"hljs-value\">\"margin-top:5px;\"<\/span> <span class=\"hljs-attribute\">class<\/span>=<span class=\"hljs-value\">\"btn btn-primary btn-sm\"<\/span> <span class=\"hljs-attribute\">href<\/span>=<span class=\"hljs-value\">\"${pageContext.request.contextPath}\/servlet\/bookServlet?type=xiu01&amp;id=${mm.id}\"<\/span><span class=\"hljs-value\">\"&gt;\u4fee\u6539&lt;\/a&gt;\n                &lt;\/td&gt;\n            &lt;\/tr&gt;\n        &lt;\/c:forEach&gt;\n    &lt;\/table&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;\n<\/span><\/span><\/code><\/pre>\n<hr\/>\n<hr\/>\n<p>\n   xiugai.jsp\u5982\u4e0b\uff1a\n  <\/p>\n<pre class=\"prettyprint\"><code class=\"hljs handlebars\"><span class=\"xml\"><span class=\"hljs-tag\"><span class=\"hljs-value\">&lt;%@ page language=\"<\/span><span class=\"hljs-value\">java\"<\/span> <span class=\"hljs-attribute\">import<\/span>=<span class=\"hljs-value\">\"java.util.*\"<\/span> <span class=\"hljs-attribute\">pageEncoding<\/span>=<span class=\"hljs-value\">\"utf-8\"<\/span><span class=\"hljs-value\">%<\/span>&gt;<\/span>\n\n<span class=\"hljs-doctype\">&lt;!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.01 Transitional\/\/EN\"&gt;<\/span>\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">html<\/span>&gt;<\/span>\n  <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">head<\/span>&gt;<\/span>\n\n\n    <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">title<\/span>&gt;<\/span>My JSP 'xiugai.jsp' starting page<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">title<\/span>&gt;<\/span>\n\n    <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">meta<\/span> <span class=\"hljs-attribute\">http-equiv<\/span>=<span class=\"hljs-value\">\"pragma\"<\/span> <span class=\"hljs-attribute\">content<\/span>=<span class=\"hljs-value\">\"no-cache\"<\/span>&gt;<\/span>\n    <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">meta<\/span> <span class=\"hljs-attribute\">http-equiv<\/span>=<span class=\"hljs-value\">\"cache-control\"<\/span> <span class=\"hljs-attribute\">content<\/span>=<span class=\"hljs-value\">\"no-cache\"<\/span>&gt;<\/span>\n    <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">meta<\/span> <span class=\"hljs-attribute\">http-equiv<\/span>=<span class=\"hljs-value\">\"expires\"<\/span> <span class=\"hljs-attribute\">content<\/span>=<span class=\"hljs-value\">\"0\"<\/span>&gt;<\/span>    \n    <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">meta<\/span> <span class=\"hljs-attribute\">http-equiv<\/span>=<span class=\"hljs-value\">\"keywords\"<\/span> <span class=\"hljs-attribute\">content<\/span>=<span class=\"hljs-value\">\"keyword1,keyword2,keyword3\"<\/span>&gt;<\/span>\n    <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">meta<\/span> <span class=\"hljs-attribute\">http-equiv<\/span>=<span class=\"hljs-value\">\"description\"<\/span> <span class=\"hljs-attribute\">content<\/span>=<span class=\"hljs-value\">\"This is my page\"<\/span>&gt;<\/span>\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">link<\/span> <span class=\"hljs-attribute\">rel<\/span>=<span class=\"hljs-value\">\"stylesheet\"<\/span>\n    <span class=\"hljs-attribute\">href<\/span>=<span class=\"hljs-value\">\"http:\/\/cdn.static.runoob.com\/libs\/bootstrap\/3.3.7\/css\/bootstrap.min.css\"<\/span>&gt;<\/span>\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">script<\/span>\n    <span class=\"hljs-attribute\">src<\/span>=<span class=\"hljs-value\">\"http:\/\/cdn.static.runoob.com\/libs\/jquery\/2.1.1\/jquery.min.js\"<\/span>&gt;<\/span><span class=\"javascript\"><\/span><span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">script<\/span>&gt;<\/span>\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">script<\/span>\n    <span class=\"hljs-attribute\">src<\/span>=<span class=\"hljs-value\">\"http:\/\/cdn.static.runoob.com\/libs\/bootstrap\/3.3.7\/js\/bootstrap.min.js\"<\/span>&gt;<\/span><span class=\"javascript\"><\/span><span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">script<\/span>&gt;<\/span>\n  <span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">head<\/span>&gt;<\/span>\n\n  <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">body<\/span> <span class=\"hljs-attribute\">class<\/span>=<span class=\"hljs-value\">\"container\"<\/span>&gt;<\/span>\n <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">form<\/span> <span class=\"hljs-attribute\">method<\/span>=<span class=\"hljs-value\">\"post\"<\/span>\n        <span class=\"hljs-attribute\">action<\/span>=<span class=\"hljs-value\">\"${pageContext.request.contextPath}\/servlet\/bookServlet?type=xiu02&amp;id=${book.id}\"<\/span>&gt;<\/span>\n        <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">div<\/span> <span class=\"hljs-attribute\">class<\/span>=<span class=\"hljs-value\">\"form-group\"<\/span>&gt;<\/span>\n            <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">label<\/span> <span class=\"hljs-attribute\">class<\/span>=<span class=\"hljs-value\">\"control-label\"<\/span>&gt;<\/span>\u4e66\u540d\uff1a<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">label<\/span>&gt;<\/span> <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">input<\/span> <span class=\"hljs-attribute\">type<\/span>=<span class=\"hljs-value\">\"text\"<\/span>\n                <span class=\"hljs-attribute\">class<\/span>=<span class=\"hljs-value\">\"form-control\"<\/span> <span class=\"hljs-attribute\">name<\/span>=<span class=\"hljs-value\">\"bookname\"<\/span>  <span class=\"hljs-attribute\">value<\/span>=<span class=\"hljs-value\">\"${book.booknamee }\"<\/span>\/&gt;<\/span>\n        <span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">div<\/span>&gt;<\/span>\n        <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">div<\/span> <span class=\"hljs-attribute\">class<\/span>=<span class=\"hljs-value\">\"form-group\"<\/span>&gt;<\/span>\n            <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">label<\/span> <span class=\"hljs-attribute\">class<\/span>=<span class=\"hljs-value\">\"control-label\"<\/span>&gt;<\/span>\u4f5c\u8005\uff1a<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">label<\/span>&gt;<\/span> <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">input<\/span> <span class=\"hljs-attribute\">type<\/span>=<span class=\"hljs-value\">\"text\"<\/span>\n                <span class=\"hljs-attribute\">class<\/span>=<span class=\"hljs-value\">\"form-control\"<\/span> <span class=\"hljs-attribute\">name<\/span>=<span class=\"hljs-value\">\"author\"<\/span> <span class=\"hljs-attribute\">value<\/span>=<span class=\"hljs-value\">\"${book.authorr }\"<\/span> \/&gt;<\/span>\n        <span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">div<\/span>&gt;<\/span>\n        <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">div<\/span> <span class=\"hljs-attribute\">class<\/span>=<span class=\"hljs-value\">\"form-group\"<\/span>&gt;<\/span>\n            <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">label<\/span> <span class=\"hljs-attribute\">class<\/span>=<span class=\"hljs-value\">\"control-label\"<\/span>&gt;<\/span>\u5e74\u9f84\uff1a<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">label<\/span>&gt;<\/span> <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">input<\/span> <span class=\"hljs-attribute\">type<\/span>=<span class=\"hljs-value\">\"text\"<\/span>\n                <span class=\"hljs-attribute\">class<\/span>=<span class=\"hljs-value\">\"form-control\"<\/span> <span class=\"hljs-attribute\">name<\/span>=<span class=\"hljs-value\">\"age\"<\/span> <span class=\"hljs-attribute\">value<\/span>=<span class=\"hljs-value\">\"${book.agee }\"<\/span>\/&gt;<\/span>\n        <span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">div<\/span>&gt;<\/span>\n        <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">div<\/span> <span class=\"hljs-attribute\">class<\/span>=<span class=\"hljs-value\">\"form-group\"<\/span>&gt;<\/span>\n            <span class=\"hljs-tag\">&lt;<span class=\"hljs-title\">input<\/span> <span class=\"hljs-attribute\">type<\/span>=<span class=\"hljs-value\">\"submit\"<\/span> <span class=\"hljs-attribute\">value<\/span>=<span class=\"hljs-value\">\"\u63d0\u4ea4\"<\/span> <span class=\"hljs-attribute\">class<\/span>=<span class=\"hljs-value\">\"btn btn-primary\"<\/span> \/&gt;<\/span>\n        <span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">div<\/span>&gt;<\/span>\n    <span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">form<\/span>&gt;<\/span>\n  <span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">body<\/span>&gt;<\/span>\n<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-title\">html<\/span>&gt;<\/span>\n<\/span><\/code><\/pre>\n<p>\n   FR:\u6d77\u6d9b\u9ad8\u8f6f\uff08QQ\u6280\u672f\u4ea4\u6d41\u7fa4\uff1a386476712\uff09\n  <\/p>\n<\/p><\/div>\n<link href=\"https:\/\/csdnimg.cn\/release\/blogv2\/dist\/mdeditor\/css\/editerView\/markdown_views-a5d25dd831.css\" rel=\"stylesheet\"\/>\n <link href=\"https:\/\/csdnimg.cn\/release\/blogv2\/dist\/mdeditor\/css\/style-e504d6a974.css\" rel=\"stylesheet\"\/>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u6240\u7528\u8f6f\u4ef6\uff1a 1 myeclipse 2 mysql\u6570\u636e\u5e93 3 dbutils\u8fde\u63a5\u6570\u636e\u5e93 4 bootstrap [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":215,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-667","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-17"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>JSP\u5b9e\u73b0\u6dfb\u52a0\u56fe\u4e66\u3001\u4fee\u6539\u56fe\u4e66\u4ee5\u53ca\u5220\u9664\u56fe\u4e66 - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.wunen.com\/index.php\/2025\/04\/08\/jsp\u5b9e\u73b0\u6dfb\u52a0\u56fe\u4e66\u3001\u4fee\u6539\u56fe\u4e66\u4ee5\u53ca\u5220\u9664\u56fe\u4e66\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JSP\u5b9e\u73b0\u6dfb\u52a0\u56fe\u4e66\u3001\u4fee\u6539\u56fe\u4e66\u4ee5\u53ca\u5220\u9664\u56fe\u4e66 - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\" \/>\n<meta property=\"og:description\" content=\"\u6240\u7528\u8f6f\u4ef6\uff1a 1 myeclipse 2 mysql\u6570\u636e\u5e93 3 dbutils\u8fde\u63a5\u6570\u636e\u5e93 4 bootstrap [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.wunen.com\/index.php\/2025\/04\/08\/jsp\u5b9e\u73b0\u6dfb\u52a0\u56fe\u4e66\u3001\u4fee\u6539\u56fe\u4e66\u4ee5\u53ca\u5220\u9664\u56fe\u4e66\/\" \/>\n<meta property=\"og:site_name\" content=\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-08T04:00:09+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"260\" \/>\n\t<meta property=\"og:image:height\" content=\"180\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin@wunen\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin@wunen\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/08\/jsp%e5%ae%9e%e7%8e%b0%e6%b7%bb%e5%8a%a0%e5%9b%be%e4%b9%a6%e3%80%81%e4%bf%ae%e6%94%b9%e5%9b%be%e4%b9%a6%e4%bb%a5%e5%8f%8a%e5%88%a0%e9%99%a4%e5%9b%be%e4%b9%a6\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/08\/jsp%e5%ae%9e%e7%8e%b0%e6%b7%bb%e5%8a%a0%e5%9b%be%e4%b9%a6%e3%80%81%e4%bf%ae%e6%94%b9%e5%9b%be%e4%b9%a6%e4%bb%a5%e5%8f%8a%e5%88%a0%e9%99%a4%e5%9b%be%e4%b9%a6\/\"},\"author\":{\"name\":\"admin@wunen\",\"@id\":\"https:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8\"},\"headline\":\"JSP\u5b9e\u73b0\u6dfb\u52a0\u56fe\u4e66\u3001\u4fee\u6539\u56fe\u4e66\u4ee5\u53ca\u5220\u9664\u56fe\u4e66\",\"datePublished\":\"2025-04-08T04:00:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/08\/jsp%e5%ae%9e%e7%8e%b0%e6%b7%bb%e5%8a%a0%e5%9b%be%e4%b9%a6%e3%80%81%e4%bf%ae%e6%94%b9%e5%9b%be%e4%b9%a6%e4%bb%a5%e5%8f%8a%e5%88%a0%e9%99%a4%e5%9b%be%e4%b9%a6\/\"},\"wordCount\":29,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.wunen.com\/#organization\"},\"image\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/08\/jsp%e5%ae%9e%e7%8e%b0%e6%b7%bb%e5%8a%a0%e5%9b%be%e4%b9%a6%e3%80%81%e4%bf%ae%e6%94%b9%e5%9b%be%e4%b9%a6%e4%bb%a5%e5%8f%8a%e5%88%a0%e9%99%a4%e5%9b%be%e4%b9%a6\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"articleSection\":[\"\u56fe\u4e66\u9605\u8bfb\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/www.wunen.com\/index.php\/2025\/04\/08\/jsp%e5%ae%9e%e7%8e%b0%e6%b7%bb%e5%8a%a0%e5%9b%be%e4%b9%a6%e3%80%81%e4%bf%ae%e6%94%b9%e5%9b%be%e4%b9%a6%e4%bb%a5%e5%8f%8a%e5%88%a0%e9%99%a4%e5%9b%be%e4%b9%a6\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/08\/jsp%e5%ae%9e%e7%8e%b0%e6%b7%bb%e5%8a%a0%e5%9b%be%e4%b9%a6%e3%80%81%e4%bf%ae%e6%94%b9%e5%9b%be%e4%b9%a6%e4%bb%a5%e5%8f%8a%e5%88%a0%e9%99%a4%e5%9b%be%e4%b9%a6\/\",\"url\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/08\/jsp%e5%ae%9e%e7%8e%b0%e6%b7%bb%e5%8a%a0%e5%9b%be%e4%b9%a6%e3%80%81%e4%bf%ae%e6%94%b9%e5%9b%be%e4%b9%a6%e4%bb%a5%e5%8f%8a%e5%88%a0%e9%99%a4%e5%9b%be%e4%b9%a6\/\",\"name\":\"JSP\u5b9e\u73b0\u6dfb\u52a0\u56fe\u4e66\u3001\u4fee\u6539\u56fe\u4e66\u4ee5\u53ca\u5220\u9664\u56fe\u4e66 - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\",\"isPartOf\":{\"@id\":\"https:\/\/www.wunen.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/08\/jsp%e5%ae%9e%e7%8e%b0%e6%b7%bb%e5%8a%a0%e5%9b%be%e4%b9%a6%e3%80%81%e4%bf%ae%e6%94%b9%e5%9b%be%e4%b9%a6%e4%bb%a5%e5%8f%8a%e5%88%a0%e9%99%a4%e5%9b%be%e4%b9%a6\/#primaryimage\"},\"image\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/08\/jsp%e5%ae%9e%e7%8e%b0%e6%b7%bb%e5%8a%a0%e5%9b%be%e4%b9%a6%e3%80%81%e4%bf%ae%e6%94%b9%e5%9b%be%e4%b9%a6%e4%bb%a5%e5%8f%8a%e5%88%a0%e9%99%a4%e5%9b%be%e4%b9%a6\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"datePublished\":\"2025-04-08T04:00:09+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/08\/jsp%e5%ae%9e%e7%8e%b0%e6%b7%bb%e5%8a%a0%e5%9b%be%e4%b9%a6%e3%80%81%e4%bf%ae%e6%94%b9%e5%9b%be%e4%b9%a6%e4%bb%a5%e5%8f%8a%e5%88%a0%e9%99%a4%e5%9b%be%e4%b9%a6\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.wunen.com\/index.php\/2025\/04\/08\/jsp%e5%ae%9e%e7%8e%b0%e6%b7%bb%e5%8a%a0%e5%9b%be%e4%b9%a6%e3%80%81%e4%bf%ae%e6%94%b9%e5%9b%be%e4%b9%a6%e4%bb%a5%e5%8f%8a%e5%88%a0%e9%99%a4%e5%9b%be%e4%b9%a6\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/08\/jsp%e5%ae%9e%e7%8e%b0%e6%b7%bb%e5%8a%a0%e5%9b%be%e4%b9%a6%e3%80%81%e4%bf%ae%e6%94%b9%e5%9b%be%e4%b9%a6%e4%bb%a5%e5%8f%8a%e5%88%a0%e9%99%a4%e5%9b%be%e4%b9%a6\/#primaryimage\",\"url\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"contentUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"width\":260,\"height\":180},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/08\/jsp%e5%ae%9e%e7%8e%b0%e6%b7%bb%e5%8a%a0%e5%9b%be%e4%b9%a6%e3%80%81%e4%bf%ae%e6%94%b9%e5%9b%be%e4%b9%a6%e4%bb%a5%e5%8f%8a%e5%88%a0%e9%99%a4%e5%9b%be%e4%b9%a6\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wunen.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JSP\u5b9e\u73b0\u6dfb\u52a0\u56fe\u4e66\u3001\u4fee\u6539\u56fe\u4e66\u4ee5\u53ca\u5220\u9664\u56fe\u4e66\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wunen.com\/#website\",\"url\":\"https:\/\/www.wunen.com\/\",\"name\":\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\",\"description\":\"\u8f6f\u4ef6\u8d44\u8baf\u6765\u7269\u5ae9\",\"publisher\":{\"@id\":\"https:\/\/www.wunen.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wunen.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.wunen.com\/#organization\",\"name\":\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\",\"url\":\"https:\/\/www.wunen.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wunen.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png\",\"contentUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png\",\"width\":1024,\"height\":1024,\"caption\":\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\"},\"image\":{\"@id\":\"https:\/\/www.wunen.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8\",\"name\":\"admin@wunen\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wunen.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g\",\"caption\":\"admin@wunen\"},\"sameAs\":[\"http:\/\/www.wunen.com\"],\"url\":\"http:\/\/www.wunen.com\/index.php\/author\/adminwunen\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JSP\u5b9e\u73b0\u6dfb\u52a0\u56fe\u4e66\u3001\u4fee\u6539\u56fe\u4e66\u4ee5\u53ca\u5220\u9664\u56fe\u4e66 - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/www.wunen.com\/index.php\/2025\/04\/08\/jsp\u5b9e\u73b0\u6dfb\u52a0\u56fe\u4e66\u3001\u4fee\u6539\u56fe\u4e66\u4ee5\u53ca\u5220\u9664\u56fe\u4e66\/","og_locale":"zh_CN","og_type":"article","og_title":"JSP\u5b9e\u73b0\u6dfb\u52a0\u56fe\u4e66\u3001\u4fee\u6539\u56fe\u4e66\u4ee5\u53ca\u5220\u9664\u56fe\u4e66 - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","og_description":"\u6240\u7528\u8f6f\u4ef6\uff1a 1 myeclipse 2 mysql\u6570\u636e\u5e93 3 dbutils\u8fde\u63a5\u6570\u636e\u5e93 4 bootstrap [&hellip;]","og_url":"http:\/\/www.wunen.com\/index.php\/2025\/04\/08\/jsp\u5b9e\u73b0\u6dfb\u52a0\u56fe\u4e66\u3001\u4fee\u6539\u56fe\u4e66\u4ee5\u53ca\u5220\u9664\u56fe\u4e66\/","og_site_name":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","article_published_time":"2025-04-08T04:00:09+00:00","og_image":[{"width":260,"height":180,"url":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","type":"image\/jpeg"}],"author":"admin@wunen","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin@wunen","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"11 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/www.wunen.com\/index.php\/2025\/04\/08\/jsp%e5%ae%9e%e7%8e%b0%e6%b7%bb%e5%8a%a0%e5%9b%be%e4%b9%a6%e3%80%81%e4%bf%ae%e6%94%b9%e5%9b%be%e4%b9%a6%e4%bb%a5%e5%8f%8a%e5%88%a0%e9%99%a4%e5%9b%be%e4%b9%a6\/#article","isPartOf":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/04\/08\/jsp%e5%ae%9e%e7%8e%b0%e6%b7%bb%e5%8a%a0%e5%9b%be%e4%b9%a6%e3%80%81%e4%bf%ae%e6%94%b9%e5%9b%be%e4%b9%a6%e4%bb%a5%e5%8f%8a%e5%88%a0%e9%99%a4%e5%9b%be%e4%b9%a6\/"},"author":{"name":"admin@wunen","@id":"https:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8"},"headline":"JSP\u5b9e\u73b0\u6dfb\u52a0\u56fe\u4e66\u3001\u4fee\u6539\u56fe\u4e66\u4ee5\u53ca\u5220\u9664\u56fe\u4e66","datePublished":"2025-04-08T04:00:09+00:00","mainEntityOfPage":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/04\/08\/jsp%e5%ae%9e%e7%8e%b0%e6%b7%bb%e5%8a%a0%e5%9b%be%e4%b9%a6%e3%80%81%e4%bf%ae%e6%94%b9%e5%9b%be%e4%b9%a6%e4%bb%a5%e5%8f%8a%e5%88%a0%e9%99%a4%e5%9b%be%e4%b9%a6\/"},"wordCount":29,"commentCount":0,"publisher":{"@id":"https:\/\/www.wunen.com\/#organization"},"image":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/04\/08\/jsp%e5%ae%9e%e7%8e%b0%e6%b7%bb%e5%8a%a0%e5%9b%be%e4%b9%a6%e3%80%81%e4%bf%ae%e6%94%b9%e5%9b%be%e4%b9%a6%e4%bb%a5%e5%8f%8a%e5%88%a0%e9%99%a4%e5%9b%be%e4%b9%a6\/#primaryimage"},"thumbnailUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","articleSection":["\u56fe\u4e66\u9605\u8bfb"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/www.wunen.com\/index.php\/2025\/04\/08\/jsp%e5%ae%9e%e7%8e%b0%e6%b7%bb%e5%8a%a0%e5%9b%be%e4%b9%a6%e3%80%81%e4%bf%ae%e6%94%b9%e5%9b%be%e4%b9%a6%e4%bb%a5%e5%8f%8a%e5%88%a0%e9%99%a4%e5%9b%be%e4%b9%a6\/#respond"]}]},{"@type":"WebPage","@id":"http:\/\/www.wunen.com\/index.php\/2025\/04\/08\/jsp%e5%ae%9e%e7%8e%b0%e6%b7%bb%e5%8a%a0%e5%9b%be%e4%b9%a6%e3%80%81%e4%bf%ae%e6%94%b9%e5%9b%be%e4%b9%a6%e4%bb%a5%e5%8f%8a%e5%88%a0%e9%99%a4%e5%9b%be%e4%b9%a6\/","url":"http:\/\/www.wunen.com\/index.php\/2025\/04\/08\/jsp%e5%ae%9e%e7%8e%b0%e6%b7%bb%e5%8a%a0%e5%9b%be%e4%b9%a6%e3%80%81%e4%bf%ae%e6%94%b9%e5%9b%be%e4%b9%a6%e4%bb%a5%e5%8f%8a%e5%88%a0%e9%99%a4%e5%9b%be%e4%b9%a6\/","name":"JSP\u5b9e\u73b0\u6dfb\u52a0\u56fe\u4e66\u3001\u4fee\u6539\u56fe\u4e66\u4ee5\u53ca\u5220\u9664\u56fe\u4e66 - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","isPartOf":{"@id":"https:\/\/www.wunen.com\/#website"},"primaryImageOfPage":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/04\/08\/jsp%e5%ae%9e%e7%8e%b0%e6%b7%bb%e5%8a%a0%e5%9b%be%e4%b9%a6%e3%80%81%e4%bf%ae%e6%94%b9%e5%9b%be%e4%b9%a6%e4%bb%a5%e5%8f%8a%e5%88%a0%e9%99%a4%e5%9b%be%e4%b9%a6\/#primaryimage"},"image":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/04\/08\/jsp%e5%ae%9e%e7%8e%b0%e6%b7%bb%e5%8a%a0%e5%9b%be%e4%b9%a6%e3%80%81%e4%bf%ae%e6%94%b9%e5%9b%be%e4%b9%a6%e4%bb%a5%e5%8f%8a%e5%88%a0%e9%99%a4%e5%9b%be%e4%b9%a6\/#primaryimage"},"thumbnailUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","datePublished":"2025-04-08T04:00:09+00:00","breadcrumb":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/04\/08\/jsp%e5%ae%9e%e7%8e%b0%e6%b7%bb%e5%8a%a0%e5%9b%be%e4%b9%a6%e3%80%81%e4%bf%ae%e6%94%b9%e5%9b%be%e4%b9%a6%e4%bb%a5%e5%8f%8a%e5%88%a0%e9%99%a4%e5%9b%be%e4%b9%a6\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.wunen.com\/index.php\/2025\/04\/08\/jsp%e5%ae%9e%e7%8e%b0%e6%b7%bb%e5%8a%a0%e5%9b%be%e4%b9%a6%e3%80%81%e4%bf%ae%e6%94%b9%e5%9b%be%e4%b9%a6%e4%bb%a5%e5%8f%8a%e5%88%a0%e9%99%a4%e5%9b%be%e4%b9%a6\/"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"http:\/\/www.wunen.com\/index.php\/2025\/04\/08\/jsp%e5%ae%9e%e7%8e%b0%e6%b7%bb%e5%8a%a0%e5%9b%be%e4%b9%a6%e3%80%81%e4%bf%ae%e6%94%b9%e5%9b%be%e4%b9%a6%e4%bb%a5%e5%8f%8a%e5%88%a0%e9%99%a4%e5%9b%be%e4%b9%a6\/#primaryimage","url":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","contentUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","width":260,"height":180},{"@type":"BreadcrumbList","@id":"http:\/\/www.wunen.com\/index.php\/2025\/04\/08\/jsp%e5%ae%9e%e7%8e%b0%e6%b7%bb%e5%8a%a0%e5%9b%be%e4%b9%a6%e3%80%81%e4%bf%ae%e6%94%b9%e5%9b%be%e4%b9%a6%e4%bb%a5%e5%8f%8a%e5%88%a0%e9%99%a4%e5%9b%be%e4%b9%a6\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wunen.com\/"},{"@type":"ListItem","position":2,"name":"JSP\u5b9e\u73b0\u6dfb\u52a0\u56fe\u4e66\u3001\u4fee\u6539\u56fe\u4e66\u4ee5\u53ca\u5220\u9664\u56fe\u4e66"}]},{"@type":"WebSite","@id":"https:\/\/www.wunen.com\/#website","url":"https:\/\/www.wunen.com\/","name":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","description":"\u8f6f\u4ef6\u8d44\u8baf\u6765\u7269\u5ae9","publisher":{"@id":"https:\/\/www.wunen.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wunen.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":"Organization","@id":"https:\/\/www.wunen.com\/#organization","name":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","url":"https:\/\/www.wunen.com\/","logo":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wunen.com\/#\/schema\/logo\/image\/","url":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png","contentUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png","width":1024,"height":1024,"caption":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51"},"image":{"@id":"https:\/\/www.wunen.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8","name":"admin@wunen","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wunen.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g","caption":"admin@wunen"},"sameAs":["http:\/\/www.wunen.com"],"url":"http:\/\/www.wunen.com\/index.php\/author\/adminwunen\/"}]}},"_links":{"self":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/posts\/667","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/comments?post=667"}],"version-history":[{"count":0,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/posts\/667\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/media\/215"}],"wp:attachment":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/media?parent=667"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/categories?post=667"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/tags?post=667"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}