{"id":97130,"date":"2024-10-20T15:15:17","date_gmt":"2024-10-20T07:15:17","guid":{"rendered":"https:\/\/server.hk\/cnblog\/97130\/"},"modified":"2024-10-20T15:15:17","modified_gmt":"2024-10-20T07:15:17","slug":"p%e4%b8%ad%e5%a6%82%e4%bd%95%e9%a1%af%e7%a4%ba%e6%95%b8%e6%93%9a%e5%ba%ab%e5%b1%ac%e6%80%a7-%e6%95%b8%e6%93%9a%e5%ba%ab%e5%b1%ac%e6%80%a7%e5%9c%a8jsp%e9%a1%af%e7%a4%ba","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/97130\/","title":{"rendered":"P\u4e2d\u5982\u4f55\u986f\u793a\u6578\u64da\u5eab\u5c6c\u6027 (\u6578\u64da\u5eab\u5c6c\u6027\u5728jsp\u986f\u793a)"},"content":{"rendered":"<h1 id=\"p%e4%b8%ad%e5%a6%82%e4%bd%95%e9%a1%af%e7%a4%ba%e6%95%b8%e6%93%9a%e5%ba%ab%e5%b1%ac%e6%80%a7-%e6%95%b8%e6%93%9a%e5%ba%ab%e5%b1%ac%e6%80%a7%e5%9c%a8jsp%e9%a1%af%e7%a4%ba-fiBfwRQifp\">P\u4e2d\u5982\u4f55\u986f\u793a\u6578\u64da\u5eab\u5c6c\u6027 (\u6578\u64da\u5eab\u5c6c\u6027\u5728JSP\u986f\u793a)<\/h1>\n<p>\u5728\u7576\u4eca\u7684\u7db2\u7d61\u61c9\u7528\u958b\u767c\u4e2d\uff0cJavaServer Pages (JSP) \u662f\u4e00\u7a2e\u5ee3\u6cdb\u4f7f\u7528\u7684\u6280\u8853\uff0c\u80fd\u5920\u52d5\u614b\u751f\u6210HTML\u5167\u5bb9\u3002\u7576\u6d89\u53ca\u5230\u6578\u64da\u5eab\u64cd\u4f5c\u6642\uff0c\u958b\u767c\u8005\u7d93\u5e38\u9700\u8981\u5f9e\u6578\u64da\u5eab\u4e2d\u63d0\u53d6\u5c6c\u6027\u4e26\u5728JSP\u9801\u9762\u4e0a\u986f\u793a\u3002\u672c\u6587\u5c07\u63a2\u8a0e\u5982\u4f55\u5728JSP\u4e2d\u986f\u793a\u6578\u64da\u5eab\u5c6c\u6027\uff0c\u4e26\u63d0\u4f9b\u76f8\u95dc\u7684\u793a\u4f8b\u548c\u4ee3\u78bc\u7247\u6bb5\u3002<\/p>\n<h2 id=\"%e6%95%b8%e6%93%9a%e5%ba%ab%e9%80%a3%e6%8e%a5-fiBfwRQifp\">\u6578\u64da\u5eab\u9023\u63a5<\/h2>\n<p>\u5728\u958b\u59cb\u4e4b\u524d\uff0c\u9996\u5148\u9700\u8981\u78ba\u4fdd\u80fd\u5920\u6210\u529f\u9023\u63a5\u5230\u6578\u64da\u5eab\u3002\u9019\u901a\u5e38\u6d89\u53ca\u5230\u4f7f\u7528JDBC\uff08Java Database Connectivity\uff09\u4f86\u5efa\u7acb\u9023\u63a5\u3002\u4ee5\u4e0b\u662f\u4e00\u500b\u7c21\u55ae\u7684\u793a\u4f8b\uff0c\u5c55\u793a\u5982\u4f55\u5728JSP\u4e2d\u8a2d\u7f6e\u6578\u64da\u5eab\u9023\u63a5\uff1a<\/p>\n<pre><code>\n\n\n<\/code><\/pre>\n<h2 id=\"%e9%a1%af%e7%a4%ba%e6%95%b8%e6%93%9a%e5%ba%ab%e5%b1%ac%e6%80%a7-fiBfwRQifp\">\u986f\u793a\u6578\u64da\u5eab\u5c6c\u6027<\/h2>\n<p>\u4e00\u65e6\u6210\u529f\u9023\u63a5\u5230\u6578\u64da\u5eab\uff0c\u63a5\u4e0b\u4f86\u7684\u6b65\u9a5f\u662f\u5f9e\u7d50\u679c\u96c6\u4e2d\u63d0\u53d6\u6578\u64da\u4e26\u5728JSP\u9801\u9762\u4e0a\u986f\u793a\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u5728JSP\u4e2d\u986f\u793a\u6578\u64da\u5eab\u5c6c\u6027\u7684\u793a\u4f8b\uff1a<\/p>\n<pre><code>\n<table border=\"1\">\n    <tr>\n        <th>ID<\/th>\n        <th>Name<\/th>\n        <th>Email<\/th>\n    <\/tr>\n\n    <tr>\n        <td><\/td>\n        <td><\/td>\n        <td><\/td>\n    <\/tr>\n\n<\/table>\n\n<\/code><\/pre>\n<h2 id=\"%e6%b3%a8%e6%84%8f%e4%ba%8b%e9%a0%85-fiBfwRQifp\">\u6ce8\u610f\u4e8b\u9805<\/h2>\n<ul>\n<li>\u78ba\u4fddJDBC\u9a45\u52d5\u7a0b\u5e8f\u5df2\u6b63\u78ba\u6dfb\u52a0\u5230\u9805\u76ee\u4e2d\u3002<\/li>\n<li>\u5728\u5be6\u969b\u61c9\u7528\u4e2d\uff0c\u61c9\u8003\u616e\u4f7f\u7528\u9023\u63a5\u6c60\u4f86\u63d0\u9ad8\u6027\u80fd\u3002<\/li>\n<li>\u5c0d\u65bc\u654f\u611f\u6578\u64da\uff0c\u8acb\u52d9\u5fc5\u4f7f\u7528\u9069\u7576\u7684\u5b89\u5168\u63aa\u65bd\uff0c\u4f8b\u5982\u52a0\u5bc6\u548c\u9632\u6b62SQL\u6ce8\u5165\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b8%bd%e7%b5%90-fiBfwRQifp\">\u7e3d\u7d50<\/h2>\n<p>\u5728JSP\u4e2d\u986f\u793a\u6578\u64da\u5eab\u5c6c\u6027\u662f\u4e00\u500b\u76f8\u5c0d\u7c21\u55ae\u7684\u904e\u7a0b\uff0c\u53ea\u9700\u5efa\u7acb\u6578\u64da\u5eab\u9023\u63a5\u3001\u57f7\u884c\u67e5\u8a62\u4e26\u5c07\u7d50\u679c\u986f\u793a\u5728HTML\u8868\u683c\u4e2d\u3002\u9019\u7a2e\u65b9\u6cd5\u4e0d\u50c5\u80fd\u5920\u6709\u6548\u5730\u5c55\u793a\u6578\u64da\uff0c\u9084\u80fd\u5920\u70ba\u7528\u6236\u63d0\u4f9b\u52d5\u614b\u7684\u7db2\u9801\u9ad4\u9a57\u3002\u5c0d\u65bc\u9700\u8981\u9ad8\u6548\u80fd\u548c\u7a69\u5b9a\u6027\u7684\u61c9\u7528\uff0c\u9078\u64c7\u5408\u9069\u7684 <a href=\"https:\/\/server.hk\">VPS<\/a> \u89e3\u6c7a\u65b9\u6848\u662f\u81f3\u95dc\u91cd\u8981\u7684\u3002\u7121\u8ad6\u662f\u9078\u64c7 <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u9084\u662f\u5176\u4ed6\u985e\u578b\u7684 <a href=\"https:\/\/server.hk\">\u4f3a\u670d\u5668<\/a>\uff0c\u90fd\u80fd\u70ba\u60a8\u7684\u61c9\u7528\u63d0\u4f9b\u5f37\u5927\u7684\u652f\u6301\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e86\u89e3\u5982\u4f55\u5728JSP\u4e2d\u986f\u793aP\u4e2d\u6578\u64da\u5eab\u5c6c\u6027\uff0c\u7c21\u5316\u6578\u64da\u5448\u73fe\uff0c\u63d0\u5347\u7db2\u9801\u4e92\u52d5\u6027\u8207\u7528\u6236\u9ad4\u9a57\u3002<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-97130","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/97130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=97130"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/97130\/revisions"}],"predecessor-version":[{"id":97131,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/97130\/revisions\/97131"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=97130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=97130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=97130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}