{"id":347,"date":"2023-05-27T17:49:42","date_gmt":"2023-11-18T11:32:53","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/index.php\/2023\/11\/30\/jsp%e5%bc%82%e5%b8%b8%e5%a4%84%e7%90%86-jsp%e9%94%99%e8%af%af%e9%a1%b5%e9%9d%a2\/"},"modified":"2025-08-02T00:47:48","modified_gmt":"2025-08-01T16:47:48","slug":"jsp%e5%bc%82%e5%b8%b8%e5%a4%84%e7%90%86-jsp%e9%94%99%e8%af%af%e9%a1%b5%e9%9d%a2","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/jsp%e5%bc%82%e5%b8%b8%e5%a4%84%e7%90%86-jsp%e9%94%99%e8%af%af%e9%a1%b5%e9%9d%a2\/","title":{"rendered":"JSP\u5f02\u5e38\u5904\u7406\u5b8c\u5168\u6307\u5357\uff1a\u5982\u4f55\u521b\u5efa\u548c\u914d\u7f6eJSP\u9519\u8bef\u9875\u9762"},"content":{"rendered":"<p>\u5728JSP\u4e2d\uff0c\u5f02\u5e38\u5904\u7406\u662f\u901a\u8fc7JSP\u5f02\u5e38\u9875\u9762\u6765\u5b8c\u6210\u7684\u3002<\/p>\n<h2>JSP\u4e2d\u7684\u5f02\u5e38\u5904\u7406<\/h2>\n<p>\u524d\u4e9b\u65f6\u5019\uff0c\u6211\u5199\u4e86\u4e00\u7bc7\u5173\u4e8eServlet\u5f02\u5e38\u5904\u7406\u4ee5\u53ca\u4e3a\u4ec0\u4e48\u6211\u4eec\u9700\u8981\u5b83\u7684\u6587\u7ae0\u3002\u76f8\u540c\u7684\u89e3\u91ca\u4e5f\u9002\u7528\u4e8eJSP\u9875\u9762\uff0c\u8fd9\u5c31\u662f\u4e3a\u4ec0\u4e48Java EE\u5728JSP\u4e2d\u4f7f\u7528JSP\u9519\u8bef\u9875\u9762\u63d0\u4f9b\u4e86\u660e\u786e\u7684\u5f02\u5e38\u5904\u7406\u65b9\u6cd5\u3002\u8981\u5904\u7406JSP\u9875\u9762\u629b\u51fa\u7684\u5f02\u5e38\uff0c\u6211\u4eec\u53ea\u9700\u8981\u4e00\u4e2a\u9519\u8bef\u9875\u9762\u5e76\u5728JSP\u4e2d\u4f7f\u7528JSP\u9875\u9762\u6307\u4ee4\u6765\u5b9a\u4e49\u9519\u8bef\u9875\u9762\u3002<\/p>\n<h3>JSP\u9519\u8bef\u9875\u9762<\/h3>\n<p>\u4e3a\u4e86\u521b\u5efa\u4e00\u4e2aJSP\u9519\u8bef\u9875\u9762\uff0c\u6211\u4eec\u9700\u8981\u5c06\u9875\u6307\u4ee4\u5c5e\u6027isErrorPage\u7684\u503c\u8bbe\u7f6e\u4e3atrue\uff0c\u7136\u540e\u6211\u4eec\u53ef\u4ee5\u5728JSP\u4e2d\u8bbf\u95ee\u5f02\u5e38jsp\u9690\u5f0f\u5bf9\u8c61\uff0c\u5e76\u4f7f\u7528\u5b83\u5411\u5ba2\u6237\u7aef\u53d1\u9001\u81ea\u5b9a\u4e49\u7684\u9519\u8bef\u6d88\u606f\u3002<\/p>\n<h3>JSP\u9519\u8bef\u9875\u9762\u914d\u7f6e<\/h3>\n<p>\u6211\u4eec\u9700\u8981\u8bbe\u7f6e\u9875\u9762\u6307\u4ee4errorPage\u5c5e\u6027\uff0c\u4ee5\u5b9a\u4e49JSP\u670d\u52a1\u65b9\u6cd5\u629b\u51fa\u7684\u4efb\u4f55\u5f02\u5e38\u5c06\u7531\u54ea\u4e2aJSP\u5904\u7406\u3002\u5f53\u5c06JSP\u9519\u8bef\u9875\u9762\u8f6c\u6362\u4e3aTomcat\u4e2d\u7684Servlet\u4ee3\u7801\u65f6\uff0c\u5b83\u5c06\u6269\u5c55org.apache.jasper.runtime.HttpJspBase\u3002<\/p>\n<h3>\u9519\u8bef\u9875\u9762\u90e8\u7f72\u63cf\u8ff0\u7b26\u914d\u7f6e<\/h3>\n<p>\u5927\u591a\u6570\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u6709\u4e00\u4e2a\u901a\u7528\u7684\u9519\u8bef\u9875\u9762\uff0c\u6211\u4eec\u5e0c\u671b\u6240\u6709JSP\u90fd\u80fd\u4f7f\u7528\u5b83\uff0c\u56e0\u6b64\u6211\u4eec\u53ef\u4ee5\u5728web.xml\u4e2d\u4f7f\u7528error-page\u5143\u7d20\u5b9a\u4e49\u9519\u8bef\u9875\u9762\uff0c\u800c\u4e0d\u662f\u5728\u6bcf\u4e2aJSP\u4e2d\u5355\u72ec\u914d\u7f6e\u5b83\u3002\u6211\u4eec\u8fd8\u53ef\u4ee5\u914d\u7f6eJSP\u9519\u8bef\u9875\u9762\u6765\u5904\u7406\u5176\u4ed6\u9519\u8bef\u4ee3\u7801\uff0c\u6bd4\u5982404\u3002\u8ba9\u6211\u4eec\u770b\u770b\u5728Web\u5e94\u7528\u7a0b\u5e8f\u4e2d\u5982\u4f55\u5c06\u5b83\u4eec\u7ed3\u5408\u8d77\u6765\u3002\u6211\u4eec\u5c06\u521b\u5efa\u4e00\u4e2a\u540d\u4e3aJSPExceptionHandling\u7684\u7b80\u5355Web\u5e94\u7528\u7a0b\u5e8f\uff0c\u5176\u9879\u76ee\u7ed3\u6784\u5982\u4e0b\u56fe\u6240\u793a\u3002\u5e94\u7528\u7a0b\u5e8f\u7684\u5165\u53e3\u70b9\u662findex.jsp\uff0c\u5176\u4ee3\u7801\u5982\u4e0b\u6240\u793a\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;%@ page language=\"java\" contentType=\"text\/html; charset=US-ASCII\"\r\n    pageEncoding=\"US-ASCII\"%&gt;\r\n&lt;!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.01 Transitional\/\/EN\" \"https:\/\/www.w3.org\/TR\/html4\/loose.dtd\"&gt;\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;meta http-equiv=\"Content-Type\" content=\"text\/html; charset=US-ASCII\"&gt;\r\n&lt;title&gt;\u767b\u5f55\u9875\u9762&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;form action=\"login.jsp\" method=\"post\"&gt;\r\n&lt;strong&gt;\u7528\u6237ID&lt;\/strong&gt;:&lt;input type=\"text\" name=\"id\"&gt;&lt;br&gt;\r\n&lt;strong&gt;\u5bc6\u7801&lt;\/strong&gt;:&lt;input type=\"password\" name=\"password\"&gt;&lt;br&gt;\r\n&lt;input type=\"submit\" value=\"\u767b\u5f55\"&gt;\r\n&lt;\/form&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/code><\/pre>\n<p>\u5f53\u6211\u4eec\u63d0\u4ea4\u8868\u5355\u65f6\uff0c\u8bf7\u6c42\u5c06\u4f1a\u53d1\u9001\u5230login.jsp\uff0c\u4ee3\u7801\u5982\u4e0b\u6240\u793a\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;%@ page language=\"java\" contentType=\"text\/html; charset=US-ASCII\"\r\n    pageEncoding=\"US-ASCII\" errorPage=\"error.jsp\"%&gt;\r\n&lt;!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.01 Transitional\/\/EN\" \"https:\/\/www.w3.org\/TR\/html4\/loose.dtd\"&gt;\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;meta http-equiv=\"Content-Type\" content=\"text\/html; charset=US-ASCII\"&gt;\r\n&lt;title&gt;\u7528\u6237\u4e3b\u9875&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;%\r\n\tString user = request.getParameter(\"id\");\r\n\tString pwd = request.getParameter(\"password\");\r\n\t\r\n\tif(user == null || \"\".equals(user) || pwd == null || \"\".equals(pwd)){\r\n\t\tthrow new ServletException(\"\u7f3a\u5c11\u5fc5\u8981\u53c2\u6570\");\r\n\t}\r\n\t\r\n%&gt;\r\n\r\n&lt;%-- \u4e3a\u7b80\u5316\u8d77\u89c1\uff0c\u6b64\u5904\u7701\u7565\u6570\u636e\u5e93\u5904\u7406\u64cd\u4f5c --%&gt;\r\n\u4f60\u597d\uff0c&lt;%=user %&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/code><\/pre>\n<p>\u6ce8\u610f\uff0c\u5982\u679c\u8f93\u5165\u53c2\u6570\u4e3a\u7a7a\u6216\u8005\u4e3anull\uff0c\u5c06\u629b\u51fa\u4e00\u4e2a\u5e26\u6709\u6b63\u786e\u4fe1\u606f\u7684ServletException\uff0c\u9519\u8bef\u9875\u88ab\u5b9a\u4e49\u4e3aerror.jsp\uff0c\u5176\u4ee3\u7801\u5982\u4e0b\u6240\u793a\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;%@ page language=\"java\" contentType=\"text\/html; charset=US-ASCII\"\r\n    pageEncoding=\"US-ASCII\" isErrorPage=\"true\"%&gt;\r\n&lt;!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.01 Transitional\/\/EN\" \"https:\/\/www.w3.org\/TR\/html4\/loose.dtd\"&gt;\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;meta http-equiv=\"Content-Type\" content=\"text\/html; charset=US-ASCII\"&gt;\r\n&lt;title&gt;\u9519\u8bef\u9875\u9762&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;% if(response.getStatus() == 500){ %&gt;\r\n&lt;font color=\"red\"&gt;\u9519\u8bef\uff1a&lt;%=exception.getMessage() %&gt;&lt;\/font&gt;&lt;br&gt;\r\n\r\n&lt;%-- \u5305\u542b\u767b\u5f55\u9875\u9762 --%&gt;\r\n&lt;%@ include file=\"index.jsp\"%&gt;\r\n&lt;%}else {%&gt;\r\n\u60a8\u597d\uff0c\u9519\u8bef\u4ee3\u7801\u4e3a\uff1a&lt;%=response.getStatus() %&gt;&lt;br&gt;\r\n\u8bf7\u524d\u5f80 &lt;a href=\"\/index.jsp\"&gt;\u4e3b\u9875&lt;\/a&gt;\r\n&lt;%} %&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/code><\/pre>\n<p>\u8bf7\u6ce8\u610f isErrorPage \u9875\u9762\u6307\u4ee4\u5c5e\u6027\u503c\u4e3a true\u3002\u5f53\u5e94\u7528\u7a0b\u5e8f\u8d44\u6e90\u5f15\u53d1\u5f02\u5e38\u65f6\uff0c\u9519\u8bef\u4ee3\u7801\u4e3a500\uff0c\u4ee3\u7801\u7f16\u5199\u7528\u4e8e\u5904\u7406\u5e94\u7528\u7a0b\u5e8f\u7ea7\u522b\u7684\u5f02\u5e38\u4ee5\u53ca 404 &#8211; \u9875\u9762\u672a\u627e\u5230\u7b49\u9519\u8bef\u3002\u8fd8\u8bf7\u6ce8\u610f\u5728\u4efb\u4f55\u5f02\u5e38\u60c5\u51b5\u4e0b\u4f7f\u7528 include \u6307\u4ee4\u5448\u73b0\u7528\u6237\u767b\u5f55\u9875\u9762\u3002\u4ee5\u4e0b\u662f\u6211\u4eec\u5b9a\u4e49\u5e94\u7528\u7a0b\u5e8f\u7684\u9519\u8bef\u9875\u9762\u7684 web.xml\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\r\n&lt;web-app xmlns:xsi=\"https:\/\/www.w3.org\/2001\/XMLSchema-instance\" xmlns=\"https:\/\/java.sun.com\/xml\/ns\/javaee\" xsi:schemaLocation=\"https:\/\/java.sun.com\/xml\/ns\/javaee https:\/\/java.sun.com\/xml\/ns\/javaee\/web-app_3_0.xsd\" version=\"3.0\"&gt;\r\n  &lt;display-name&gt;JSPExceptionHandling&lt;\/display-name&gt;\r\n  &lt;welcome-file-list&gt;\r\n    &lt;welcome-file&gt;index.jsp&lt;\/welcome-file&gt;\r\n   &lt;\/welcome-file-list&gt;\r\n   \r\n   &lt;error-page&gt;\r\n   &lt;error-code&gt;404&lt;\/error-code&gt;\r\n   &lt;location&gt;\/error.jsp&lt;\/location&gt;\r\n   &lt;\/error-page&gt;\r\n   \r\n   &lt;error-page&gt;\r\n   &lt;exception-type&gt;java.lang.Throwable&lt;\/exception-type&gt;\r\n   &lt;location&gt;\/error.jsp&lt;\/location&gt;\r\n   &lt;\/error-page&gt;\r\n   \r\n&lt;\/web-app&gt;\r\n<\/code><\/pre>\n<p>\u73b0\u5728\u5f53\u6211\u4eec\u8fd0\u884c\u4e0a\u8ff0\u5e94\u7528\u7a0b\u5e8f\u65f6\uff0c\u6211\u4eec\u4f1a\u5f97\u5230\u4ee5\u4e0b\u9875\u9762\u4f5c\u4e3a\u54cd\u5e94\u3002\u767b\u5f55\u9875\u9762\u3001JSP\u5f02\u5e38\u9519\u8bef\u9875\u9762\u3001JSP 404\u9519\u8bef\u7801\u9875\u9762\u3002\u8fd9\u5c31\u662fJSP\u9875\u9762\u5f02\u5e38\u5904\u7406\u7684\u5168\u90e8\u5185\u5bb9\uff0c\u5b83\u975e\u5e38\u5bb9\u6613\u5b9e\u73b0\uff0c\u6211\u4eec\u5e94\u8be5\u4f7f\u7528\u5b83\u6765\u786e\u4fdd\u6211\u4eec\u5904\u7406\u6240\u6709\u7684\u5f02\u5e38\u548c\u9519\u8bef\u7801\uff0c\u5e76\u5411\u5ba2\u6237\u7aef\u53d1\u9001\u6709\u7528\u7684\u54cd\u5e94\uff0c\u800c\u4e0d\u662f\u4f7f\u7528\u5bb9\u5668\u9ed8\u8ba4\u9519\u8bef\u9875\u9762\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728JSP\u4e2d\uff0c\u5f02\u5e38\u5904\u7406\u662f\u901a\u8fc7JSP\u5f02\u5e38\u9875\u9762\u6765\u5b8c\u6210\u7684\u3002 JSP\u4e2d\u7684\u5f02\u5e38\u5904\u7406 \u524d\u4e9b\u65f6\u5019\uff0c\u6211\u5199\u4e86\u4e00\u7bc7\u5173\u4e8eServlet [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1130,1158,1160,575,1159],"class_list":{"0":"post-347","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-uncategorized","7":"tag-java-web","8":"tag-jsp","10":"tag-575","11":"tag-1159"},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>JSP\u5f02\u5e38\u5904\u7406\u5b8c\u5168\u6307\u5357\uff1a\u5982\u4f55\u521b\u5efa\u548c\u914d\u7f6eJSP\u9519\u8bef\u9875\u9762 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u6df1\u5165\u4e86\u89e3JSP\u5f02\u5e38\u5904\u7406\u673a\u5236\uff0c\u5b66\u4e60\u5982\u4f55\u5728Java Web\u5e94\u7528\u4e2d\u6709\u6548\u5904\u7406\u9519\u8bef\u3002\u672c\u6559\u7a0b\u8be6\u7ec6\u4ecb\u7ecd\u4e86JSP\u9519\u8bef\u9875\u9762\u7684\u521b\u5efa\u4e0e\u914d\u7f6e\u65b9\u6cd5\uff0c\u5305\u62ecweb.xml\u914d\u7f6e\u3001\u9519\u8bef\u4ee3\u7801\u6620\u5c04\u53ca\u6700\u4f73\u5b9e\u8df5\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u6784\u5efa\u66f4\u5065\u58ee\u7684JSP\u5e94\u7528\u7a0b\u5e8f\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/jsp\u5f02\u5e38\u5904\u7406-jsp\u9519\u8bef\u9875\u9762\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JSP\u5f02\u5e38\u5904\u7406\u5b8c\u5168\u6307\u5357\uff1a\u5982\u4f55\u521b\u5efa\u548c\u914d\u7f6eJSP\u9519\u8bef\u9875\u9762\" \/>\n<meta property=\"og:description\" content=\"\u6df1\u5165\u4e86\u89e3JSP\u5f02\u5e38\u5904\u7406\u673a\u5236\uff0c\u5b66\u4e60\u5982\u4f55\u5728Java Web\u5e94\u7528\u4e2d\u6709\u6548\u5904\u7406\u9519\u8bef\u3002\u672c\u6559\u7a0b\u8be6\u7ec6\u4ecb\u7ecd\u4e86JSP\u9519\u8bef\u9875\u9762\u7684\u521b\u5efa\u4e0e\u914d\u7f6e\u65b9\u6cd5\uff0c\u5305\u62ecweb.xml\u914d\u7f6e\u3001\u9519\u8bef\u4ee3\u7801\u6620\u5c04\u53ca\u6700\u4f73\u5b9e\u8df5\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u6784\u5efa\u66f4\u5065\u58ee\u7684JSP\u5e94\u7528\u7a0b\u5e8f\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/jsp\u5f02\u5e38\u5904\u7406-jsp\u9519\u8bef\u9875\u9762\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-18T11:32:53+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-01T16:47:48+00:00\" \/>\n<meta name=\"author\" content=\"\u97f5, \u79d1\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u97f5, \u79d1\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/jsp%e5%bc%82%e5%b8%b8%e5%a4%84%e7%90%86-jsp%e9%94%99%e8%af%af%e9%a1%b5%e9%9d%a2\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/jsp%e5%bc%82%e5%b8%b8%e5%a4%84%e7%90%86-jsp%e9%94%99%e8%af%af%e9%a1%b5%e9%9d%a2\/\",\"name\":\"JSP\u5f02\u5e38\u5904\u7406\u5b8c\u5168\u6307\u5357\uff1a\u5982\u4f55\u521b\u5efa\u548c\u914d\u7f6eJSP\u9519\u8bef\u9875\u9762 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-11-18T11:32:53+00:00\",\"dateModified\":\"2025-08-01T16:47:48+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e\"},\"description\":\"\u6df1\u5165\u4e86\u89e3JSP\u5f02\u5e38\u5904\u7406\u673a\u5236\uff0c\u5b66\u4e60\u5982\u4f55\u5728Java Web\u5e94\u7528\u4e2d\u6709\u6548\u5904\u7406\u9519\u8bef\u3002\u672c\u6559\u7a0b\u8be6\u7ec6\u4ecb\u7ecd\u4e86JSP\u9519\u8bef\u9875\u9762\u7684\u521b\u5efa\u4e0e\u914d\u7f6e\u65b9\u6cd5\uff0c\u5305\u62ecweb.xml\u914d\u7f6e\u3001\u9519\u8bef\u4ee3\u7801\u6620\u5c04\u53ca\u6700\u4f73\u5b9e\u8df5\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u6784\u5efa\u66f4\u5065\u58ee\u7684JSP\u5e94\u7528\u7a0b\u5e8f\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/jsp%e5%bc%82%e5%b8%b8%e5%a4%84%e7%90%86-jsp%e9%94%99%e8%af%af%e9%a1%b5%e9%9d%a2\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/jsp%e5%bc%82%e5%b8%b8%e5%a4%84%e7%90%86-jsp%e9%94%99%e8%af%af%e9%a1%b5%e9%9d%a2\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/jsp%e5%bc%82%e5%b8%b8%e5%a4%84%e7%90%86-jsp%e9%94%99%e8%af%af%e9%a1%b5%e9%9d%a2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JSP\u5f02\u5e38\u5904\u7406\u5b8c\u5168\u6307\u5357\uff1a\u5982\u4f55\u521b\u5efa\u548c\u914d\u7f6eJSP\u9519\u8bef\u9875\u9762\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e\",\"name\":\"\u97f5, \u79d1\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g\",\"caption\":\"\u97f5, \u79d1\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunke\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/jsp%e5%bc%82%e5%b8%b8%e5%a4%84%e7%90%86-jsp%e9%94%99%e8%af%af%e9%a1%b5%e9%9d%a2\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"JSP\u5f02\u5e38\u5904\u7406\u5b8c\u5168\u6307\u5357\uff1a\u5982\u4f55\u521b\u5efa\u548c\u914d\u7f6eJSP\u9519\u8bef\u9875\u9762 - Blog - Silicon Cloud","description":"\u6df1\u5165\u4e86\u89e3JSP\u5f02\u5e38\u5904\u7406\u673a\u5236\uff0c\u5b66\u4e60\u5982\u4f55\u5728Java Web\u5e94\u7528\u4e2d\u6709\u6548\u5904\u7406\u9519\u8bef\u3002\u672c\u6559\u7a0b\u8be6\u7ec6\u4ecb\u7ecd\u4e86JSP\u9519\u8bef\u9875\u9762\u7684\u521b\u5efa\u4e0e\u914d\u7f6e\u65b9\u6cd5\uff0c\u5305\u62ecweb.xml\u914d\u7f6e\u3001\u9519\u8bef\u4ee3\u7801\u6620\u5c04\u53ca\u6700\u4f73\u5b9e\u8df5\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u6784\u5efa\u66f4\u5065\u58ee\u7684JSP\u5e94\u7528\u7a0b\u5e8f\u3002","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":"https:\/\/www.silicloud.com\/zh\/blog\/jsp\u5f02\u5e38\u5904\u7406-jsp\u9519\u8bef\u9875\u9762\/","og_locale":"zh_CN","og_type":"article","og_title":"JSP\u5f02\u5e38\u5904\u7406\u5b8c\u5168\u6307\u5357\uff1a\u5982\u4f55\u521b\u5efa\u548c\u914d\u7f6eJSP\u9519\u8bef\u9875\u9762","og_description":"\u6df1\u5165\u4e86\u89e3JSP\u5f02\u5e38\u5904\u7406\u673a\u5236\uff0c\u5b66\u4e60\u5982\u4f55\u5728Java Web\u5e94\u7528\u4e2d\u6709\u6548\u5904\u7406\u9519\u8bef\u3002\u672c\u6559\u7a0b\u8be6\u7ec6\u4ecb\u7ecd\u4e86JSP\u9519\u8bef\u9875\u9762\u7684\u521b\u5efa\u4e0e\u914d\u7f6e\u65b9\u6cd5\uff0c\u5305\u62ecweb.xml\u914d\u7f6e\u3001\u9519\u8bef\u4ee3\u7801\u6620\u5c04\u53ca\u6700\u4f73\u5b9e\u8df5\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u6784\u5efa\u66f4\u5065\u58ee\u7684JSP\u5e94\u7528\u7a0b\u5e8f\u3002","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/jsp\u5f02\u5e38\u5904\u7406-jsp\u9519\u8bef\u9875\u9762\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-11-18T11:32:53+00:00","article_modified_time":"2025-08-01T16:47:48+00:00","author":"\u97f5, \u79d1","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u97f5, \u79d1","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/jsp%e5%bc%82%e5%b8%b8%e5%a4%84%e7%90%86-jsp%e9%94%99%e8%af%af%e9%a1%b5%e9%9d%a2\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/jsp%e5%bc%82%e5%b8%b8%e5%a4%84%e7%90%86-jsp%e9%94%99%e8%af%af%e9%a1%b5%e9%9d%a2\/","name":"JSP\u5f02\u5e38\u5904\u7406\u5b8c\u5168\u6307\u5357\uff1a\u5982\u4f55\u521b\u5efa\u548c\u914d\u7f6eJSP\u9519\u8bef\u9875\u9762 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-11-18T11:32:53+00:00","dateModified":"2025-08-01T16:47:48+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e"},"description":"\u6df1\u5165\u4e86\u89e3JSP\u5f02\u5e38\u5904\u7406\u673a\u5236\uff0c\u5b66\u4e60\u5982\u4f55\u5728Java Web\u5e94\u7528\u4e2d\u6709\u6548\u5904\u7406\u9519\u8bef\u3002\u672c\u6559\u7a0b\u8be6\u7ec6\u4ecb\u7ecd\u4e86JSP\u9519\u8bef\u9875\u9762\u7684\u521b\u5efa\u4e0e\u914d\u7f6e\u65b9\u6cd5\uff0c\u5305\u62ecweb.xml\u914d\u7f6e\u3001\u9519\u8bef\u4ee3\u7801\u6620\u5c04\u53ca\u6700\u4f73\u5b9e\u8df5\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u6784\u5efa\u66f4\u5065\u58ee\u7684JSP\u5e94\u7528\u7a0b\u5e8f\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/jsp%e5%bc%82%e5%b8%b8%e5%a4%84%e7%90%86-jsp%e9%94%99%e8%af%af%e9%a1%b5%e9%9d%a2\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/jsp%e5%bc%82%e5%b8%b8%e5%a4%84%e7%90%86-jsp%e9%94%99%e8%af%af%e9%a1%b5%e9%9d%a2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/jsp%e5%bc%82%e5%b8%b8%e5%a4%84%e7%90%86-jsp%e9%94%99%e8%af%af%e9%a1%b5%e9%9d%a2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"JSP\u5f02\u5e38\u5904\u7406\u5b8c\u5168\u6307\u5357\uff1a\u5982\u4f55\u521b\u5efa\u548c\u914d\u7f6eJSP\u9519\u8bef\u9875\u9762"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e","name":"\u97f5, \u79d1","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g","caption":"\u97f5, \u79d1"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunke\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/jsp%e5%bc%82%e5%b8%b8%e5%a4%84%e7%90%86-jsp%e9%94%99%e8%af%af%e9%a1%b5%e9%9d%a2\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/347","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=347"}],"version-history":[{"count":4,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/347\/revisions"}],"predecessor-version":[{"id":109873,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/347\/revisions\/109873"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=347"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}