{"id":1168,"date":"2024-06-05T20:30:58","date_gmt":"2024-06-05T12:30:58","guid":{"rendered":"https:\/\/cn.raksmart.com\/blog\/host\/4086.html"},"modified":"2024-06-05T20:30:58","modified_gmt":"2024-06-05T12:30:58","slug":"jsp%e5%bb%ba%e7%ab%99%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/cn.raksmart.com\/blog\/domain\/zzjz\/1168.html","title":{"rendered":"JSP\u5efa\u7ad9\u6559\u7a0b"},"content":{"rendered":"<div class=\"entry-content e-content\" itemprop=\"description articleBody\">\n<p>\u3000\u3000\u6700\u65b0\u7b80\u6377\u6709\u7528JSP\u52a8\u6001\u7f51\u7ad9\u73af\u5883\u5efa\u7acb\u7684\u5177\u4f53\u8fdb\u7a0b\uff0c\u4f9d\u636e\u7f51\u4e0a\u5448\u73b0\u6700\u65b0\u7684web server\u8f6f\u4ef6UFO\u5efa\u7acb\u7f51\u7ad9\uff0c\u67e5\u9a8c\u4e86N\u6b21\uff0c\u6ca1\u95ee\u9898\uff1a<\/p>\n<p>\u3000\u3000\u5185\u5bb9\u63d0\u793a: Sun\u63a8\u51fa\u7684JSP(Java Server Pages)\u662f\u4e00\u79cd\u65bd\u884c\u4e8e<strong>\u670d\u52a1\u5668<\/strong>\u7aef\u7684\u52a8\u6001\u7f51\u9875\u5f00\u53d1\u6280\u80fd\uff0c\u5b83\u4f9d\u636eJava\u6280\u80fd\u3002\u65bd\u884cJSP\u65f6\u9700\u6c42\u5728<a href=\"https:\/\/cn.raksmart.com\/\"><strong>Web\u670d\u52a1\u5668<\/strong><\/a>\u4e0a\u67b6\u8d77\u4e00\u4e2a\u7f16\u8bd1JSP\u7f51\u9875\u7684\u5f15\u64ce\u3002\u88c5\u5907 JSP \u73af\u5883\u80fd\u591f\u6709\u591a\u79cd\u9014\u5f84\uff0c\u4f46\u9996\u8981\u4f5c\u4e1a\u5c31\u662f\u8bbe\u5907\u548c\u88c5\u5907<strong>Web\u670d\u52a1\u5668<\/strong>\u548cJSP\u5f15\u64ce\uff0c\u4ecb\u7ecd\u5efa\u7acb\u6700\u7b80\u6613\u9ad8\u8d28\u91cf\u7684JSP\u4f5c\u4e1a\u73af\u5883\u7684\u8ba1\u5212\u3002<\/p>\n<p>\u3000\u3000<strong>\u4e00\u3001\u76f8\u5173\u8f6f\u4ef6\u4ecb\u7ecd\u4ee5\u53ca\u4e86\u89e3<\/strong><\/p>\n<p>\u3000\u30001\u3001 JDK\uff1aJava2\u7684\u8f6f\u4ef6\u5f00\u53d1\u5de5\u5177\uff0c\u662fJava\u5e94\u7528\u7a0b\u5e8f\u7684\u6839\u5e95\u3002JSP\u662f\u4f9d\u636eJava\u6280\u80fd\u7684\uff0c\u6240\u4ee5\u88c5\u5907JSP\u73af\u5883\u4e4b\u524d\u5fc5\u9700\u6c42\u8bbe\u5907JDK\u3002<\/p>\n<p>\u3000\u30002\u3001 UFO\uff1a\u6700\u65b0\u53d1\u5e03\u7684\u652f\u6491jsp\u7684\u670d\u52a1\u5668\u8f6f\u4ef6\uff0c\u4f5c\u4e3a\u72ec\u7acb\u7684<strong>Web\u670d\u52a1\u5668<\/strong>\u6765\u4f7f\u7528\u3002\u5373\u652f\u6491\u9759\u6001\u9875\u9762\u3001\u4e00\u8d77\u4e5f\u652f\u6491\u52a8\u6001\u9875\u9762\uff0c\u5904\u7406\u8fd9\u4e24\u79cd\u9875\u9762\u90fd\u5f88\u6d3b\u7edc;\u800c\u8f6f\u4ef6\u81ea\u8eab\u5f88\u5065\u65fa\uff0c\u4e0d\u4f1a\u5448\u73b0\u5185\u5b58\u8d70\u6f0f\u548c\u670d\u52a1\u5668\u81ea\u5df1\u5b95\u6389\u7684\u73b0\u8c61\u3002\u5173\u4e8e\u521d\u5b66\u8005\u6765\u8bf4\u4e0d\u5fc5\u505a\u4efb\u4f55\u5b89\u987f\u88c5\u5907\u73af\u5883\u53d8\u91cf\u7684\u4f5c\u4e1a\uff0c\u7b80\u76f4\u80fd\u591f\u8bf4\u662f\u521d\u5b66\u8005\u7684\u9996\u9009\u3002\u63a8\u8350\u9605\u8bfb\uff1a<a href=\"https:\/\/cn.raksmart.com\/blog\/server\/653.html\" target=\"_blank\" rel=\"noreferrer noopener\">WINDOWS IIS\u6743\u9650\u7684\u8bbe\u7f6e\u6559\u7a0b\uff08\u4e0a\uff09<\/a><\/p>\n<p>\u3000\u3000<strong>\u4e8c\u3001 \u8f6f\u4ef6\u4e0b\u8f7d\u7248\u522b\u4ecb\u7ecd<\/strong><\/p>\n<p>\u3000\u30001\u3001JDK1.5.0<\/p>\n<p>\u3000\u3000\u7248\u522b\uff1aJDK1.5.0_17 (JDK1.5.0\u53ca\u4ee5\u4e0a\u7248\u522b\u90fd\u80fd\u591f)<\/p>\n<p>\u3000\u30002\u3001UFO 0.999<\/p>\n<p>\u3000\u3000\u7248\u522b\uff1a0.999(1.79MB)<\/p>\n<p>\u3000\u3000<strong>\u4e09\u3001 \u88c5\u5907\u524d\u7684\u51c6\u5907<\/strong><\/p>\n<p>\u3000\u3000(\u4e00)\u51c6\u5907\u4e00\u4e2a\u67e5\u9a8c\u7528\u7684JSP\u7f51\u9875<\/p>\n<p>\u3000\u3000\u7ffb\u5f00\u6587\u672c\u6279\u6539\u5668\uff0c\u6bd4\u5982\u8bb0\u4e8b\u672c\uff0c\u8f93\u5165\u4e0b\u5217\u4ee3\u7801\uff0c\u5e76\u4fdd\u5b58\u4e3atest .jsp(\u7559\u610f\u6269\u5c55\u540d\u4e3a.jsp)\u3002<\/p>\n<p>\u3000\u3000\u4ee5\u4e0b\u4e3a\u5f15\u8bc1\u7684\u5185\u5bb9\uff1a<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0\uff1cHTML\uff1e<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0\uff1cHEAD\uff1e<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0\uff1cTITLE\uff1eJSP\u67e5\u9a8c\u9875\u9762\uff1c\/TITLE\uff1e<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0\uff1c\/HEAD\uff1e<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0\uff1cBODY\uff1e<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0\uff1c%out.println(\u201c\uff1ch1\uff1eHello World! \uff1c\/h1\uff1e\u201d);%\uff1e<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0\uff1c\/BODY\uff1e<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0\uff1c\/HTML\uff1e<\/p>\n<p>\u3000\u3000<strong>(\u4e8c)\u8bbe\u5907JDK1.5.0_16<\/strong><\/p>\n<p>\u3000\u30001\u3001 \u8fd9\u4e2a\u4e0d\u5fc5\u8bf4\u6211\u4eec\u90fd\u4f1a\uff0c\u76f4\u63a5\u4f5c\u4e1a\u4e0b\u8f7d\u7684jdk-1_5_0_16-windows-i586-p\u6587\u4ef6\uff0c\u4f9d\u636e\u8bbe\u5907\u5bfc\u6e38\u8bbe\u5907\u5230\u4e00\u4e2a\u76ee\u5f55\uff0c\u4f8b\u5982\u8bbe\u5907\u5230D:DK1.5.0_16\u3002<\/p>\n<p>\u3000\u30002\u3001 \u4e0d\u5fc5\u589e\u52a0\u73af\u5883\u53d8\u91cf\uff0c\u53ea\u9700\u6c42\u505a\u5982\u4e0b\u4f5c\u4e1a\uff1a<\/p>\n<p>\u3000\u3000\u5728UFO\u4e2d\u7ffb\u5f00bin\u76ee\u5f55\u4e0b\u7684setclasspath.bat\u6587\u4ef6<\/p>\n<p>\u3000\u3000a: Windows\u4e0b\uff0c\u7ffb\u5f00UFO\u4e2d\u7684bin\u76ee\u5f55\uff0c\u7ffb\u5f00\u6279\u6539setclasspath.bat\u6587\u4ef6\u523a\u8fdb\u4e00\u884c\uff1aset JAVA_HOME=D:jdk1.5.0_16 (\u5373\u628aJAVA_HOME\u8bbe\u7f6e\u6210JDK\u5728\u60a8\u6838\u7b97\u673a\u4e0a\u7684\u8bbe\u5907\u76ee\u5f55),\u6279\u6539\u540e\u6572startup.bat\u5373\u53ef\u5efa\u8baeUFO;\u66f4\u591a\u5185\u5bb9\u8bf7\u9605\u8bfb\uff1a<a href=\"https:\/\/cn.raksmart.com\/blog\/server\/671.html\" target=\"_blank\" rel=\"noreferrer noopener\">WINDOWS IIS\u6743\u9650\u7684\u8bbe\u7f6e\u6559\u7a0b\uff08\u4e0b\uff09<\/a><\/p>\n<p>\u3000\u3000b: Linux\u64cd\u4f5c\u7cfb\u7edf\u6572.\/startup.sh \u5373\u53ef\u76f4\u63a5\u5efa\u8baeUFO;<\/p>\n<p>\u3000\u3000<strong>\u56db\u3001 \u63a5\u4e0b\u6765\u5c31\u80fd\u591f\u505a\u5168\u4f53\u67e5\u9a8c\u4f5c\u4e1a\u4e86<\/strong><\/p>\n<p>\u3000\u3000\u4ee5test.jsp\u4e3a\u4f8b\uff1a\u628atest.jsp\u653e\u5728D:UFOwebappsexamplesjsp \u76ee\u5f55\u4e0b\uff0c\u5efa\u8baeUFO\u3002\u7ffb\u5f00\u6d4f\u89c8\u5668\uff0c\u5728\u5730\u5740\u680f\u91cc\u8f93\u5165http:\/\/localhost:80\/examples\/jsp\/test.jsp \uff0c<\/p>\n<p>\u3000\u3000\u4f60\u5c06\u4f1a\u770b\u5230 Hello World!\u7684\u5b57\u6837\uff0c\u8fd9\u5c31\u9610\u660e\u6211\u4eec\u6210\u529f\u4e86!<\/p>\n<p>\u3000\u3000\u5efa\u7acbJSP\u7684\u4f5c\u4e1a\u73af\u5883\u662f\u5b66\u4e60JSP\u6280\u80fd\u7684\u6839\u5e95\uff0c\u672c\u529e\u6cd5\u662f\u4f9d\u636e\u6700\u65b0\u7684\u8f6f\u4ef6UFO\u88c5\u5907\u7684;\u7531\u4e8eUFO\u73b0\u5df2\u628a\u73af\u5883\u53d8\u91cf\u7684\u88c5\u5907\u4f5c\u4e1a\u63d0\u524d\u505a\u597d\u4e86\uff0c\u6240\u4ee5\u5efa\u7acbJSP\u7684\u4f5c\u4e1a\u73af\u5883\u5f88\u7b80\u5355\uff0c\u5173\u4e8e\u7f51\u7ad9\u5f00\u53d1\u8fd9\u6765\u8bf4(\u5c24\u5176\u662f\u65b0\u4eba)\u5f88\u6709\u5e2e\u52a9\u3002\u5173\u4e8e\u65b0\u8f6f\u4ef6\u7684\u529f\u7528\u5f97\u7531\u5f00\u53d1\u4eba\u5458\u53bb\u9886\u4f1a\u3002<\/p>\n<p>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000\u3000\u6700\u65b0\u7b80\u6377\u6709\u7528JSP\u52a8\u6001\u7f51\u7ad9\u73af\u5883\u5efa\u7acb\u7684\u5177\u4f53\u8fdb\u7a0b\uff0c\u4f9d\u636e\u7f51\u4e0a\u5448\u73b0\u6700\u65b0\u7684web server\u8f6f\u4ef6UFO\u5efa\u2026 <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[972],"class_list":["post-1168","post","type-post","status-publish","format-standard","hentry","category-zzjz","tag-972"],"_links":{"self":[{"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/posts\/1168","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/comments?post=1168"}],"version-history":[{"count":0,"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/posts\/1168\/revisions"}],"wp:attachment":[{"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/media?parent=1168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/categories?post=1168"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/tags?post=1168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}