tag:blogger.com,1999:blog-31457362415522375832024-03-13T13:50:04.010-07:00JSPAnonymoushttp://www.blogger.com/profile/10408292414496303607noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-3145736241552237583.post-50404098807518422472015-12-14T08:21:00.002-08:002015-12-15T06:18:27.805-08:00<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<b><br /></b></div>
<h4 style="clear: both; text-align: center;">
<b><span style="font-size: large;">ประวัติของผู้จัดทำ</span></b></h4>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUZlLjB_B0tQZNVroRUu2PEGZAuek2X_Y0-aYu_amzYFy-T2fOUn581MYBbtsXDZss77ka3zl_ipKjgzveuEm9bdlZAtebHT8Bm0QXCc6qoAcEWXH8HwJh9zQ_nCTz9DpDEAdJYGttwSjU/s1600/12039634_485497931628779_1656039668393481193_n.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUZlLjB_B0tQZNVroRUu2PEGZAuek2X_Y0-aYu_amzYFy-T2fOUn581MYBbtsXDZss77ka3zl_ipKjgzveuEm9bdlZAtebHT8Bm0QXCc6qoAcEWXH8HwJh9zQ_nCTz9DpDEAdJYGttwSjU/s320/12039634_485497931628779_1656039668393481193_n.jpg" width="234" /></a></div>
<br />
<br />
<br />
<div style="text-align: left;">
<b>ชื่อ</b> นางสาว กันตพร ประมูลจักโก</div>
<div style="text-align: left;">
<b>ชื่อเล่น</b> แก้ม</div>
<div style="text-align: left;">
<b>เกิดเมื่อวันที่</b> 22 เมษายน 2541</div>
<div style="text-align: left;">
<b>ศึกษาชั้น</b> มัธยมศึกษาปี่ที่ 6/1 </div>
<div style="text-align: left;">
<b>สาย</b> วิทย์-คณิต</div>
<div style="text-align: left;">
<b>วิชาที่ชอบ</b> วิทยาศาสตร์ สังคมศึกษา ภาษาไทย ศิลปะ-ดนตรี</div>
<div style="text-align: left;">
<b>สี่ที่ชอบ</b> ฟ้า ม่วง</div>
<div style="text-align: left;">
<b>อาหารที่ชอบ</b> แกงเขียวหวาน ข้าวมันไก่</div>
<div style="text-align: left;">
<b>งานอดิเรก</b> ดูหนัง ฟังเพลง อ่านหนังสือ</div>
<div style="text-align: left;">
<b>คติประจำใจ</b> ถ้าไม่ก้าว คงไม่มีวันไปข้างหน้า</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMm6SpAm2Wgzeq-7zYSQOQuut3Fv6z_IDQEDyGJ3SfhWctNEwi8ldJ4i3WdE3SAqahoqxjmQfL5cwoesEqqcdLGFtIjQA5yF59WIQ2SGPc4Q41ddp2qkC3DFZe4HzZTATQa10WlsxrBYnx/s1600/12367005_517110485122374_1904998269_n.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMm6SpAm2Wgzeq-7zYSQOQuut3Fv6z_IDQEDyGJ3SfhWctNEwi8ldJ4i3WdE3SAqahoqxjmQfL5cwoesEqqcdLGFtIjQA5yF59WIQ2SGPc4Q41ddp2qkC3DFZe4HzZTATQa10WlsxrBYnx/s320/12367005_517110485122374_1904998269_n.jpg" width="240" /></a></div>
<div style="text-align: left;">
<br /></div>
<b><br /></b>
<b><br /></b>
<b>ชื่อ</b> นางสาว ปภาวดี ศรีใจแก้ว<br />
<b>ชื่อเล่น</b> จอย<br />
<b>เกิดเมื่อวันที่</b> 27 พฤศจิกายน 2540<br />
<b>ศึกษาชั้น</b> มัธยมศึกษาปี่ที่ 6/1<br />
<b>สาย</b> วิทย์-คณิต<br />
<b>วิชาที่ชอบ</b> ภาษาอังกฤษ สังคมศึกษา<br />
<b>สี่ที่ชอบ</b> ชมพู<br />
<b>อาหารที่ชอบ</b> ส้มตำ<br />
<b>งานอดิเรก</b> ดูหนัง ฟังเพลง อ่านหนังสือ<br />
<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqNXHzxiw6icXG_5UNl7qD1nCAW0et7WnkrVAiCdLOBKxZGMTyBb7Niew39kxNxZ4wRdGfuCTNGIykb6ffhp6NHC8-a_T_OF-RHJfy4CcemYSor37H9I_rbBVz4M0qKqzBaAvF0msKkXLY/s1600/12387885_934964246598589_1021031182_n.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqNXHzxiw6icXG_5UNl7qD1nCAW0et7WnkrVAiCdLOBKxZGMTyBb7Niew39kxNxZ4wRdGfuCTNGIykb6ffhp6NHC8-a_T_OF-RHJfy4CcemYSor37H9I_rbBVz4M0qKqzBaAvF0msKkXLY/s1600/12387885_934964246598589_1021031182_n.jpg" /></a></div>
<br />
<b><br /></b>
<b><br /></b>
<b>ชื่อ</b> นางสาว ภัทรวดี สิงหามาตย์<br />
<b>ชื่อเล่น</b> ฟ้า<br />
<b>เกิดเมื่อวันที่</b> 9 กันยายนยน 2540<br />
<b>ศึกษาชั้น</b> มัธยมศึกษาปี่ที่ 6/1<br />
<b>สาย</b> วิทย์-คณิต<br />
<b>วิชาที่ชอบ</b> ภาษาอังกฤษ คณิตศาสตร์<br />
<b>สี่ที่ชอบ</b> สีฟ้า<br />
<b>อาหารที่ชอบ</b> แกงเขียวหวาน<br />
<b>งานอดิเรก</b> ทำข้อสอบ อ่านหนังสือ<br />
<b>คติประจำใจ</b> <span style="background-color: #fefefe; color: #373e4d; font-family: "helvetica" , "arial" , sans-serif; line-height: 17.92px; white-space: pre-wrap;">ความฝันเพียงน้อยนิด สามารถสร้างสิ่งเล็กๆได้ยิ่งใหญ่เสมอ.<span style="font-size: 14px;"> </span></span><br />
<br />
<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkVduIhicD2Aau-qA99GZVYdpo0u87L8ZojtKoAKaw-kk65y0afnIqn-0FB74Tjwsd4IPtLgNoU2DmeITOFgBrwD7pm6W4-G9H6hyphenhyphen5xl_HfnUpeQHMjW8viuClmGYAejeosQrDUtod7Db2/s1600/10514640_1508997712647548_1154865475243380240_n.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkVduIhicD2Aau-qA99GZVYdpo0u87L8ZojtKoAKaw-kk65y0afnIqn-0FB74Tjwsd4IPtLgNoU2DmeITOFgBrwD7pm6W4-G9H6hyphenhyphen5xl_HfnUpeQHMjW8viuClmGYAejeosQrDUtod7Db2/s320/10514640_1508997712647548_1154865475243380240_n.jpg" width="320" /></a></div>
<br />
<br />
<br />
<br />
<br />
<b>ชื่อ</b> นายวัชระ รังคะวงค์<br />
<b>ชื่อเล่น</b> แป๊ก<br />
<b>เกิดเมื่อวันที่</b> 11 มกราคม 2541<br />
<b>ศึกษาชั้น</b> มัธยมศึกษาปี่ที่ 6/1<br />
<b>สาย</b> วิทย์-คณิต<br />
<b>วิชาที่ชอบ</b> วิทยาศาสตร์ ศิลปะ-ดนตรี<br />
<b>สี่ที่ชอบ</b> เขียว ฟ้า<br />
<b>อาหารที่ชอบ</b> ข้าวผัด ทอดหมู ทอดเนื้อ<br />
<b>งานอดิเรก</b> ทำสิ่งประดิษฐ์ ฟังเพลง อ่านหนังสือ<br />
<b>คติประจำใจ</b> <span style="color: #373e4d; font-family: "helvetica" , "arial" , sans-serif;"><span style="background-color: #fefefe; line-height: 17.92px; white-space: pre-wrap;">ดีมาดีกลับ ร้ายมาร้ายตอบ</span></span><br />
<div>
<span style="background-color: #fefefe; color: #373e4d; font-family: "helvetica" , "arial" , sans-serif; line-height: 17.92px; white-space: pre-wrap;"><span style="font-size: 14px;"><br /></span></span></div>
<br />
<br />
<br />
<div style="text-align: left;">
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6v3BUFzoN_OzUvgqcqYZU6Vaa6V_BbL7yi5zw53U5Y3QmelSLb08rMi-zpgMZhhwLBnKSB-AzmSv7hWxbq9k7VpNsVrPxZbdA78gOqaHVYLmVUpCLKPG6DEOTSwLbE8JRPaIPpnRwIP6w/s1600/12387949_517482868418469_108743290_n.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6v3BUFzoN_OzUvgqcqYZU6Vaa6V_BbL7yi5zw53U5Y3QmelSLb08rMi-zpgMZhhwLBnKSB-AzmSv7hWxbq9k7VpNsVrPxZbdA78gOqaHVYLmVUpCLKPG6DEOTSwLbE8JRPaIPpnRwIP6w/s320/12387949_517482868418469_108743290_n.jpg" width="320" /></a></div>
<br /></div>
<div style="text-align: left;">
<b><br /></b>
<b>ชื่อ</b> นางสาว เพชรไพรินทร์ บุ้งเจาะบาง<br />
<b>ชื่อเล่น</b> หมอก<br />
<b>เกิดเมื่อวันที่</b> 25 ตุลาคม 2540<br />
<b>ศึกษาชั้น</b> มัธยมศึกษาปี่ที่ 6/1<br />
<b>สาย</b> วิทย์-คณิต<br />
<b>วิชาที่ชอบ</b> วิทยาศาสตร์ <br />
<b>สี่ที่ชอบ</b> -<br />
<b>อาหารที่ชอบ</b> ส้มตำ ไก่ย่าง<br />
<b>งานอดิเรก</b> ดูหนัง ฟังเพลง<br />
<b>คติประจำใจ</b> <span style="color: #373e4d; font-family: helvetica, arial, sans-serif;"><span style="background-color: #fefefe; line-height: 17.92px; white-space: pre-wrap;">-</span></span><br />
<br />
<br /></div>
Anonymoushttp://www.blogger.com/profile/10408292414496303607noreply@blogger.com0tag:blogger.com,1999:blog-3145736241552237583.post-55671960314520511252015-11-29T20:28:00.002-08:002015-11-29T20:28:06.648-08:00<h2 style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 18px; font-weight: normal; line-height: 1.4em; margin: 0.25em 0px 0px; padding: 0px 0px 4px;">
<span style="background-color: white;">ประวัติภาษา JSP</span></h2>
<h3 style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 18px; font-weight: normal; line-height: 1.4em; margin: 0.25em 0px 0px; padding: 0px 0px 4px;">
</h3>
<div style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13.3333330154419px;">
<div>
</div>
</div>
<br />
<div style="font-family: 'Lucida Grande', 'Lucida Sans Unicode', sans-serif; font-size: 13.3333330154419px; line-height: 1.6em; margin: 0px 0px 0.75em;">
<div align="justify" style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif;">
<span style="background-color: white; font-family: "lucida grande";"><span style="font-size: small;"> JSP (Java Server Page) ภาษา JSP เป็นเทคโนโลยีของจาวาสำหรับสร้าง HTML, XML หรือตามที่ผู้ใช้ร้องขอ มีตัวแปลภาษาคือ Tomcat Apache และ Java Compiler พัฒนาโดย James Duncan Davidson ค.ศ.2000 ตัวแปลภาษาจะสร้าง Servlet และเปลี่ยนเป็น Byte Code สำหรับถูกเรียกใช้ครั้งต่อไป จาก JSP Source Code</span></span></div>
<div align="justify" style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif;">
<span style="background-color: white;"><span style="font-family: "lucida grande";"><span style="font-size: small;"> </span></span><span style="font-family: "tahoma" , "geneva" , sans-serif; font-size: 10pt; line-height: 22px; text-align: left;"> </span><span style="font-family: "tahoma" , "geneva" , sans-serif; line-height: 22px; text-align: left;"><span style="font-size: small;">J</span></span><span style="font-family: "tahoma" , "geneva" , sans-serif; line-height: 22px; text-align: left;"><span style="font-size: small;">ava Server Page (JSP) เป็นเทคโนโลยีสำหรับการควบคุมเนื้อหาหรือสิ่งที่มองเห็นของเว็บเพจผ่านการใช้ servlet ที่เป็นโปรแกรมขนาดเล็กที่ได้รับการระบุในเว็บเพจและเรียกใช้บนแม่ข่ายเว็บเพื่อการปรับปรุงเว็บเพจก่อนได้รับการส่งไปยังผู้ใช้ผู้ขอสิ่งนี้ Sun Microsystems ผู้พัฒนา Java ได้อ้างถึงเทคโนโลยี JSP เป็น Servlet application program interface (API) โดย JSP เปรียบเทียบได้กับเทคโนโลยี Active Server Page (ASP) ของ Microsoft ขณะที่ Java Server Page เรียกโปรแกรม Java ที่ได้รับการประมวลผลโดยแม่ข่ายเว็บ Active Server Page เก็บสคริปต์ที่ได้รับการแปลโดยตัวแปรสคริปต์ (เช่น VBScript หรือ Jscript) ก่อนเพจได้รับการส่งไปยังผู้ใช้ </span></span><span style="font-family: "tahoma" , "geneva" , sans-serif; font-size: small; line-height: 22px; text-align: left;">เพจ HTML ที่เก็บการเชื่อมโยงกับ Java servlet บางครั้งให้ไฟล์นามสกุล .JSP</span></span></div>
<div align="justify">
<span style="background-color: white;"><span style="font-family: "tahoma" , "geneva" , sans-serif; font-size: small; line-height: 22px; text-align: left;"> </span><span style="font-size: 14px; line-height: normal;"><span style="font-family: "arial" , sans-serif;">JSP เกิดขึ้นเมื่อปี 1999 โดยบริษัท Sun Microsystems</span></span></span></div>
</div>
Anonymoushttp://www.blogger.com/profile/10272956007758855492noreply@blogger.com0tag:blogger.com,1999:blog-3145736241552237583.post-17502953444568500572015-11-29T20:25:00.002-08:002015-11-29T20:25:24.028-08:00<h2 style="background: white; margin-bottom: .0001pt; margin-bottom: 0cm; mso-line-height-alt: 13.85pt;">
<b><span lang="TH" style="color: #222222; font-family: "Angsana New","serif"; font-size: 18.0pt; mso-ascii-theme-font: major-bidi; mso-bidi-theme-font: major-bidi; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-bidi;">ความหมายของ </span></b><b><span style="color: #222222; font-family: "Angsana New","serif"; font-size: 18.0pt; mso-ascii-theme-font: major-bidi; mso-bidi-theme-font: major-bidi; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-bidi;">JSP</span></b></h2>
<div class="MsoNormal" style="background: white; margin-bottom: .0001pt; margin-bottom: 0cm; mso-line-height-alt: 13.85pt;">
<span style="color: #222222; font-family: "Angsana New","serif"; font-size: 16.0pt; mso-ascii-theme-font: major-bidi; mso-bidi-theme-font: major-bidi; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-bidi;"> <o:p></o:p></span></div>
<br />
<div class="MsoNormal" style="background: white; margin-bottom: .0001pt; margin-bottom: 0cm; mso-line-height-alt: 13.85pt;">
<span style="color: #222222; font-family: "Angsana New","serif"; font-size: 16.0pt; mso-ascii-theme-font: major-bidi; mso-bidi-theme-font: major-bidi; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-bidi;"> <b><span lang="TH">หรือ </span>Java Server Page</b> <span lang="TH">เป็นเทคโนโลยี </span>Java
<span lang="TH">อีกเทคโนโลยีหนึ่ง ซึ่งมีการทำงานอยู่บนฝั่ง </span>Server <span lang="TH">หรือ อาจเรียกได้ว่าเป็นการทำงานแบบ </span>Server side <span lang="TH">ขั้นตอนการทำงานจะเริ่มตั้งแต่การร้องขอ
หรือ เกิด </span>Request <span lang="TH">จาก </span>Browser <span lang="TH">หรือ </span>Client
<span lang="TH">มาที่ </span>JSP <span lang="TH">บนฝั่ง </span>Server <span lang="TH">จากนั้น </span>Server <span lang="TH">ก็จำทำการประมวลผล </span>JSP <span lang="TH">เป็น </span>servlet <span lang="TH">ก่อน แล้วส่ง </span>Response <span lang="TH">กลับไปให้ </span>Client <span lang="TH">ในรูปของ </span>HTML<o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtHJzRdJKNTUHO27hUq2Q-JP4tsXiqE0GVjSGWG6Y7sv2U5x2XNts4pIYN10Q-TRMQm-5Xdb8Heyevd8SKQ1SMhqadUuWQZEEzBKBZcnGn4qM4108C8erxyWpJEk3wbu64kqbYoZQQF4J8/s1600/capture-20151129-094008.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="177" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtHJzRdJKNTUHO27hUq2Q-JP4tsXiqE0GVjSGWG6Y7sv2U5x2XNts4pIYN10Q-TRMQm-5Xdb8Heyevd8SKQ1SMhqadUuWQZEEzBKBZcnGn4qM4108C8erxyWpJEk3wbu64kqbYoZQQF4J8/s320/capture-20151129-094008.png" width="320" /></a></div>
<div class="MsoNormal" style="background: white; margin-bottom: .0001pt; margin-bottom: 0cm; mso-line-height-alt: 13.85pt;">
<b><span lang="TH" style="color: #222222; font-family: "Angsana New","serif"; font-size: 16.0pt; mso-ascii-theme-font: major-bidi; mso-bidi-theme-font: major-bidi; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-bidi;">การใช้ </span></b><b><span style="color: #222222; font-family: "Angsana New","serif"; font-size: 16.0pt; mso-ascii-theme-font: major-bidi; mso-bidi-theme-font: major-bidi; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-bidi;">JSP <span lang="TH">ร่วมกับ </span>Technology <span lang="TH">อื่น</span></span></b><a href="https://www.blogger.com/null" name="jspoth"></a><span style="color: #222222; font-family: "Angsana New","serif"; font-size: 16.0pt; mso-ascii-theme-font: major-bidi; mso-bidi-theme-font: major-bidi; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-bidi;"><br />
<span lang="TH">นอกจาก </span>JSP <span lang="TH">จะถูกนำมาประมวลผลในรูปแบบข่างต้นแล้ว
</span>JSP <span lang="TH">ยังอาจนำไปใช้ร่วมกับ </span>Component <span lang="TH">หรือ
เทคโนโลยีอื่นๆ ได้ เช่น นำไปใช้ร่วมกับ </span>Servlet , Class Bean <span lang="TH">หรือ </span>EJB <span lang="TH">เป็นต้น
ซึ่งจะทำให้การทำงานของระบบมีประสิทธิภาพสูงขึ้น
ในขณะเดียวกันก็มีความซับซ้อนมากตามไปด้วย เช่นกัน</span><o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrm6YFesaj7axAzUNXNp7sMa5yFk34Cis5_OzPdmerYQMqGCYQPjTrFR7aWpEx1iY87T3irNOLSdmCOT_d7Iwv-noPQSFnk8TBSSKGTK0-GfXaa8gsvAtK01rk4FpyXHnuogjFYLnRiaAS/s1600/capture-20151129-094119.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrm6YFesaj7axAzUNXNp7sMa5yFk34Cis5_OzPdmerYQMqGCYQPjTrFR7aWpEx1iY87T3irNOLSdmCOT_d7Iwv-noPQSFnk8TBSSKGTK0-GfXaa8gsvAtK01rk4FpyXHnuogjFYLnRiaAS/s320/capture-20151129-094119.png" width="262" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJCDQB4cuy7sdzyw0j877gx41oFNUl3xQDhNThHZzuK39Do2SqdO-KZL-D8FKq-r4R4e0TM_-T9gRa83KiTYsCxyeyH7UM5qZz4lh48STQx6AcCb-ebzMddNkasCPoA6L4sWLA2xWM-BTf/s1600/capture-20151129-094152.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="169" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJCDQB4cuy7sdzyw0j877gx41oFNUl3xQDhNThHZzuK39Do2SqdO-KZL-D8FKq-r4R4e0TM_-T9gRa83KiTYsCxyeyH7UM5qZz4lh48STQx6AcCb-ebzMddNkasCPoA6L4sWLA2xWM-BTf/s320/capture-20151129-094152.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: .0001pt; margin-bottom: 0cm; mso-line-height-alt: 13.85pt;">
<span style="color: #222222; font-family: "Angsana New","serif"; font-size: 16.0pt; mso-ascii-theme-font: major-bidi; mso-bidi-theme-font: major-bidi; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-bidi;"><span lang="TH"><br /></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: .0001pt; margin-bottom: 0cm; mso-line-height-alt: 13.85pt;">
<span style="color: #222222; font-family: "Angsana New","serif"; font-size: 16.0pt; mso-ascii-theme-font: major-bidi; mso-bidi-theme-font: major-bidi; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-bidi;"><br /></span></div>
Anonymoushttp://www.blogger.com/profile/08734592026998873507noreply@blogger.com0tag:blogger.com,1999:blog-3145736241552237583.post-51777346299388865462015-11-29T09:35:00.002-08:002015-11-29T09:39:15.017-08:00<h2 style="text-align: center;">
<b><span lang="TH" style="font-family: "cordia new" , "sans-serif"; font-size: 20.0pt;">หลักการทำงานของ </span></b><b><span style="font-family: "cordia new" , "sans-serif"; font-size: 20.0pt;">JSP<o:p></o:p></span></b></h2>
<div class="MsoNoSpacing" style="text-indent: 36.0pt;">
<br /></div>
<div class="MsoNoSpacing" style="text-align: justify; text-indent: 36.0pt; text-justify: inter-cluster;">
<span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">JSP
<span lang="TH">เป็น </span>technology <span lang="TH">ที่สร้างบน </span>Servlet <span lang="TH">อีกทีหนึ่ง มีจุดประสงค์เพื่อแยกเอาส่วนที่เป็น </span>presentation (user
interface) <span lang="TH">ซึ่งก็คือพวก </span>HTML code <span lang="TH">ออกมาจาก </span>servlet
code <span lang="TH">ซึ่งเป็น </span>code <span lang="TH">ภาษาจาวา
เพื่อในการสร้าง/แก้ไข </span>user interface (web pages) <span lang="TH">จะได้ทำได้ง่าย
ทั้งนี้เพราะว่าคนที่ทำหน้าที่สร้าง/แก้ไข </span>web page <span lang="TH">ไม่ใช่ </span>programmer
<span lang="TH">แต่เป็น </span>web designer <span lang="TH">ซึ่งไม่มีความรู้เรื่องภาษาจาวาเท่าไหร่นัก
</span>JSP <span lang="TH">มักใช้คู่กับ </span>Servlet <span lang="TH">ในการสร้าง </span>web
application <span lang="TH">โดย </span>JSP <span lang="TH">จะใช้สร้างส่วนที่เป็น </span>user
interface <span lang="TH">ในขณะที่ </span>Servlet <span lang="TH">จะใช้ในการควบคุม </span>flow
<span lang="TH">ของโปรแกรม</span><o:p></o:p></span></div>
<div class="MsoNoSpacing" style="text-align: justify; text-indent: 36.0pt; text-justify: inter-cluster;">
<span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">JSP
<span lang="TH">ย่อมาจาก </span>Java Server Page <span lang="TH">เป็นการพัฒนาเวปเพจลักษณะ
</span>web-scripting <span lang="TH">คล้ายกับ </span>Microsoft<span lang="TH"> </span>Active
Server Pages (ASP)<span lang="TH"> ซึ่งทำงานร่วมกันระหว่างภาษาจาวากับ </span>HTML<span lang="TH"> ลักษณะของโปรแกรมจะคล้ายกับการนำจาวาไปแทรกในหน้า </span>HTML <span lang="TH">อย่างไรก็ตาม </span>Web server <span lang="TH">จะแปลงไฟล์ </span>jsp <span lang="TH">มาคอมไพล์ให้อยู่ในรูปของ </span>servlet <span lang="TH">จากนั้นนำผลลัพธ์กลับมาแสดงในรูปของ
</span>HTML <span lang="TH">ดังรูป</span><o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijchSTBggpF03FT0UFk78jIsvN3M_cC90_oecJ5QykblnwV-yJwNCUx0qcrvifmCvTKredzri9kUH_GsXm-Rlx4Snxgybn8IoAF83Y0FJNei4YpmLj1cnrvy36psdiZBQ8gxxefqePxOXE/s1600/capture-20151129-092454.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="124" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijchSTBggpF03FT0UFk78jIsvN3M_cC90_oecJ5QykblnwV-yJwNCUx0qcrvifmCvTKredzri9kUH_GsXm-Rlx4Snxgybn8IoAF83Y0FJNei4YpmLj1cnrvy36psdiZBQ8gxxefqePxOXE/s320/capture-20151129-092454.png" width="320" /></a></div>
<div align="center" class="MsoNormal" style="text-align: center;">
<span lang="TH" style="font-family: "cordia new" , "sans-serif"; font-size: 14.0pt; line-height: 115%;">โครงสร้างการทำงานของ
</span><span style="font-family: "cordia new" , "sans-serif"; font-size: 14.0pt; line-height: 115%;">JSP<o:p></o:p></span></div>
<div align="center" class="MsoNormal" style="text-align: center;">
<br /></div>
<div class="MsoNoSpacing">
<span lang="TH" style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">จะเห็นว่าการที่
</span><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">jsp
<span lang="TH">ทำงานได้ต้องอาศัย </span>JSP Container <span lang="TH">ที่อยู่ใน </span>web
server <span lang="TH">ในที่นี้เราจะ </span>Apache Tomcat<span lang="TH"> เป็น </span>Web
server<span lang="TH"> และ </span>JSP Container <span lang="TH">ในตัว
เมื่อต้องการนำทดสอบหรือนำไปใช้งานจริงบน </span>web server <span lang="TH">ทำได้โดย</span><o:p></o:p></span></div>
<div class="MsoNoSpacing" style="text-indent: 36.0pt;">
<span lang="TH" style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">1. นำไฟล์ </span><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">jsp <span lang="TH">ที่สร้างขึ้นไปวางที่ </span>%TOMCAT_HOME%/webapps/yourapps/<span lang="TH"> หรือ </span>%TOMCAT_HOME%/webapps/ROOT <span lang="TH">ก็ได้</span><o:p></o:p></span></div>
<div class="MsoNoSpacing" style="text-indent: 36.0pt;">
<span lang="TH" style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">2. บีบอัดโฟล์เดอร์ที่เก็บโปรแกรมโดยใช้ฟอร์แมท
</span><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">zip
<span lang="TH">แล้วเปลี่ยนนามสกุลเป็น </span>.war <span lang="TH">นำไปวางที่ </span>%TOMCAT_HOME%/webapps/<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="text-indent: 36.0pt;">
<span lang="TH" style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">3. กรณีที่ไม่ต้องการย้ายโฟล์เดอร์ไปไว้ใน
</span><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">TOMCAT_HOME
<span lang="TH">เราสามารถแก้ไขไฟล์</span> %TOMCAT_HOME%/conf/server.xml <span lang="TH">ส่วน </span>Context <span lang="TH">เช่น </span><Context
path="/TestApp" docBase="D:\TestApplication\"
debug="0" reloadable="true"/> <span lang="TH">ให้ชี้ไปยังที่ที่เราพัฒนาโปรแกรมได้</span><o:p></o:p></span></div>
<div class="MsoNoSpacing" style="text-indent: 36.0pt;">
<span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">4<span lang="TH">. ใช้ </span>Apache ANT <span lang="TH">ช่วยในการติดตั้ง วิธีการจะค่อนข้างซับซ้อน</span></span><o:p></o:p></div>
<div class="MsoNoSpacing" style="text-indent: 36.0pt;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="MsoNormal">
<b><span lang="TH" style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; line-height: 115%;"> ตัวอย่าง</span></b></div>
<div class="MsoNormal">
<b><span lang="TH" style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; line-height: 115%;"> </span></b></div>
<div class="separator" style="clear: both; text-align: center;">
<b><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfAW5bL4EuaOJhv0ViALntBhFfMLGr8Kk0cWZNMoKcL0eSf8YquSA9-rBPLuO6AEjoQZvsRwcA9CpNO-5fShgcewoXlk-Lhanq2-8gM3jtWgq9c2nnJtgok70Gxr-dG0ryc3ZDEwUMRE_W/s1600/capture-20151129-092729.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="146" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfAW5bL4EuaOJhv0ViALntBhFfMLGr8Kk0cWZNMoKcL0eSf8YquSA9-rBPLuO6AEjoQZvsRwcA9CpNO-5fShgcewoXlk-Lhanq2-8gM3jtWgq9c2nnJtgok70Gxr-dG0ryc3ZDEwUMRE_W/s320/capture-20151129-092729.png" width="320" /></a></b></div>
<div class="separator" style="clear: both; text-align: center;">
<b><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4N1QwN14McvIQFASWsWpDTOiJ1HPSWqsQalJCaKYpFK8Cif7jSFHq5bxNC8Nb05oYt4dm3fJyXloKd53pLXNd7cB1saoMf8CSmgFKH3ktrYqRq8s9SCffaqgfzzMfO5zoLRoRsBWpbsdL/s1600/capture-20151129-092823.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="136" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4N1QwN14McvIQFASWsWpDTOiJ1HPSWqsQalJCaKYpFK8Cif7jSFHq5bxNC8Nb05oYt4dm3fJyXloKd53pLXNd7cB1saoMf8CSmgFKH3ktrYqRq8s9SCffaqgfzzMfO5zoLRoRsBWpbsdL/s320/capture-20151129-092823.png" width="320" /></a></b></div>
<br />
<div class="MsoNormal">
<span lang="TH" style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; line-height: 115%;">แทกของ </span><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; line-height: 115%;">JSP <span lang="TH">แบ่งเป็น<o:p></o:p></span></span></div>
<div class="MsoNoSpacing" style="text-align: justify; text-indent: 36.0pt; text-justify: inter-cluster;">
<span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">-
Directives <%@ page attribute=value %> <o:p></o:p></span></div>
<div class="MsoNoSpacing" style="text-align: justify; text-justify: inter-cluster;">
<span lang="TH" style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">มักอยู่บนสุดของ</span><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;"> JSP page <span lang="TH">ซึ่งใช้ในการกำหนดค่าต่าง ๆ ที่เกี่ยวข้องกับ </span>JSP<span lang="TH">
หรือเกี่ยวข้องกับการสื่อสารกับ</span> JSP Container <span lang="TH">เช่น</span><o:p></o:p></span></div>
<div class="MsoNoSpacing" style="margin-left: 36.0pt; text-indent: 36.0pt;">
<span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">import <span lang="TH">คลาสโดยใช้</span> </span><tt><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; mso-bidi-font-family: "Angsana New"; mso-fareast-font-family: Calibri;"><%@ page
import="java.util.Date" %></span></tt><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;"> <o:p></o:p></span></div>
<div class="MsoNoSpacing" style="text-indent: 36.0pt;">
<span lang="TH" style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;"> เมื่อที่เกิดข้อผิดพลาดใน
</span><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">JSP
<span lang="TH">แล้วต้องการให้แสดงหน้า</span> error page <span lang="TH">ที่ชื่อ </span>errorPage.jsp
</span><tt><span lang="TH" style="font-size: 16.0pt; mso-ascii-font-family: "Cordia New"; mso-fareast-font-family: Calibri; mso-hansi-font-family: "Cordia New";"> โดยใช้</span></tt><tt><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; mso-bidi-font-family: "Angsana New"; mso-fareast-font-family: Calibri;"><%@ page
errorPage="errorPage.jsp" %></span></tt><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;"> <o:p></o:p></span></div>
<div class="MsoNoSpacing" style="text-indent: 36.0pt;">
<span lang="TH" style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;"> เมื่อต้องการเก็บ </span><span style="font-family: "cordia new" , sans-serif; font-size: 16pt;">states <span lang="TH">ในรูปของ
</span>session <span lang="TH">โดยใช้</span></span><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;"> </span><tt><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; mso-bidi-font-family: "Angsana New"; mso-fareast-font-family: Calibri;"><%@ page
session="true" %> </span></tt><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;"><o:p></o:p></span></div>
<div class="MsoNoSpacing" style="text-indent: 36.0pt;">
<span lang="TH" style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;"> เมื่อต้องการนำไฟล์อื่น
ๆ เช่น </span><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">html,
jsp <span lang="TH">มาประกอบในไฟล์</span> JSP<span lang="TH"> โดยใช้ </span></span><tt><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; mso-bidi-font-family: "Angsana New"; mso-fareast-font-family: Calibri;"><%@ include
file="filename.jsp" %></span></tt><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;"> <o:p></o:p></span></div>
<div class="MsoNoSpacing" style="text-indent: 36.0pt;">
<span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">- Expressions <span lang="TH">ใช้แปลงค่าตัวแปรของจาวาให้อยู่ในรูปของ
</span>string <span lang="TH">แล้วแทรกลงใน </span>HTML <span lang="TH">ไม่ต้องใส่เครื่องหมาย
</span>; <span lang="TH">ท้ายตัวแปร </span><%= expression %><o:p></o:p></span></div>
<div class="MsoNoSpacing" style="text-indent: 36.0pt;">
<span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">- Scriptlets <span lang="TH">ใช้ใส่โค้ดของจาวา
ส่วนของโลจิกและการประมวลผมลงใน </span>HTML <% statements %><o:p></o:p></span></div>
<div class="MsoNoSpacing" style="text-indent: 36.0pt;">
<span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">- Declaration <span lang="TH">ใช้ประกาศคลาส
เมธอดและตัวแปรภาษาจาวาภายใน </span>HTML <span lang="TH">เมื่อโหลด </span>jsp <span lang="TH">ครั้งแรกจะทำการ </span>initialize <span lang="TH">โดยอัตโนมัติ </span><%!
statements %><span lang="TH"> </span><o:p></o:p></span></div>
<div class="MsoNoSpacing" style="tab-stops: 70.9pt; text-indent: 36.0pt;">
<b><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">-</span></b><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;"> Comments <span lang="TH">มีสองแบบคือ</span> <br />
comment
<span lang="TH">ปกติที่ใช้ในภาษา </span>html
<span lang="TH">ซึ่ง </span>JSP Container <span lang="TH">จะนำมาประมวลผลและแสดงในหน้า
</span>html <span lang="TH">ด้วย </span></span><tt><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; mso-bidi-font-family: "Angsana New"; mso-fareast-font-family: Calibri;"><!-- comment --></span></tt><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;"><o:p></o:p></span></div>
<div class="MsoNoSpacing">
<span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;"> comments <span lang="TH">ของ </span>JSP
<span lang="TH">ซึ่งจะถูก </span>JSP Container<span lang="TH">
ข้ามไปไม่นำมาประมวลผล </span> </span><tt><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; mso-bidi-font-family: "Angsana New"; mso-fareast-font-family: Calibri;"><%-- comment --%></span></tt><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;"><o:p></o:p></span></div>
<b><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">JSP
Implicit Object<o:p></o:p></span></b><br />
<div style="text-align: justify; text-indent: 36.0pt; text-justify: inter-cluster;">
<span lang="TH" style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">ใน </span><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">JSP<span lang="TH"> บางคลาสที่เราใช้เป็นประจำ เราสามารถเรียก </span>object <span lang="TH">ของคลาสออกมาใช้ได้โดยไม่ต้องมีการประกาศตัวแปรก่อน
เราเรียกว่า </span>Implicit Object<span lang="TH"> หรือ </span>Predefined
variable <span lang="TH">ได้แก่<o:p></o:p></span></span></div>
<div class="MsoNormal" style="margin-left: 49.65pt; text-align: justify; text-indent: -7.65pt;">
<!--[if !supportLists]--><span style="font-family: "symbol"; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 16.0pt; mso-fareast-font-family: Symbol;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal;"> </span></span><!--[endif]--><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; mso-fareast-font-family: "Times New Roman";">out <span lang="TH">ใช้ในการส่งผลกลับไปยังผู้ใช้</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 49.65pt; text-align: justify; text-indent: -7.65pt;">
<!--[if !supportLists]--><span style="font-family: "symbol"; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 16.0pt; mso-fareast-font-family: Symbol;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal;"> </span></span><!--[endif]--><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; mso-fareast-font-family: "Times New Roman";">page <span lang="TH">คือหน้าของ </span>jsp <span lang="TH">เอง
คล้ายกับ </span>this <span lang="TH">ในจาวา</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 49.65pt; text-align: justify; text-indent: -7.65pt;">
<!--[if !supportLists]--><span style="font-family: "symbol"; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 16.0pt; mso-fareast-font-family: Symbol;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal;"> </span></span><!--[endif]--><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; mso-fareast-font-family: "Times New Roman";">pageContext <span lang="TH">ใช้เก็บข้อมูลคุณสมบัติของ </span>jsp
<span lang="TH">ทั้งหน้านี้</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 49.65pt; text-align: justify; text-indent: -7.65pt;">
<!--[if !supportLists]--><span style="font-family: "symbol"; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 16.0pt; mso-fareast-font-family: Symbol;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal;"> </span></span><!--[endif]--><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; mso-fareast-font-family: "Times New Roman";">request <span lang="TH">ใช้รับ </span>request <span lang="TH">คล้ายกับ
</span>HttpServletRequest <span lang="TH">ของ </span>servlet<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 49.65pt; text-align: justify; text-indent: -7.65pt;">
<!--[if !supportLists]--><span style="font-family: "symbol"; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 16.0pt; mso-fareast-font-family: Symbol;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal;"> </span></span><!--[endif]--><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; mso-fareast-font-family: "Times New Roman";">response <span lang="TH">ใช้ส่ง </span>response <span lang="TH">คล้ายกับ
</span>HttpServletResponse <span lang="TH">ของ </span>servlet<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 49.65pt; text-align: justify; text-indent: -7.65pt;">
<!--[if !supportLists]--><span style="font-family: "symbol"; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 16.0pt; mso-fareast-font-family: Symbol;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal;"> </span></span><!--[endif]--><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; mso-fareast-font-family: "Times New Roman";">session <span lang="TH">ใช้เก็บ </span>session <span lang="TH">ที่มากับ
</span>request<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 49.65pt; text-align: justify; text-indent: -7.65pt;">
<!--[if !supportLists]--><span style="font-family: "symbol"; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 16.0pt; mso-fareast-font-family: Symbol;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal;"> </span></span><!--[endif]--><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; mso-fareast-font-family: "Times New Roman";">config <span lang="TH">ใช้เก็บ </span>setting <span lang="TH">ที่มากับ</span>
jsp<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 49.65pt; text-align: justify; text-indent: -7.65pt;">
<!--[if !supportLists]--><span style="font-family: "symbol"; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 16.0pt; mso-fareast-font-family: Symbol;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal;"> </span></span><!--[endif]--><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; mso-fareast-font-family: "Times New Roman";">application <span lang="TH">ใช้เก็บข้อมูลที่ใช้ร่วมกันของทั้ง</span>
JSP <span lang="TH">และ</span> servlets <span lang="TH">ใน </span>application <span lang="TH">นั้น</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 49.65pt; text-align: justify; text-indent: -7.65pt;">
<!--[if !supportLists]--><span style="font-family: "symbol"; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 16.0pt; mso-fareast-font-family: Symbol;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal;"> </span></span><!--[endif]--><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; mso-fareast-font-family: "Times New Roman";">exception <span lang="TH">ใช้กำหนดหน้าของ </span>jsp <span lang="TH">ที่ใช้แสดงกรณีเกิด </span>Exceptions <span lang="TH">ขึ้น</span><o:p></o:p></span></div>
<br />
<span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">JSP
Actions<o:p></o:p></span><br />
<div style="margin-left: 49.65pt; mso-list: l1 level1 lfo2; text-align: justify; text-indent: -7.1pt; text-justify: inter-cluster;">
<!--[if !supportLists]--><span style="font-family: "symbol"; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal;"> </span></span><!--[endif]--><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">jsp:include <span lang="TH">ใช้สำหรับดึงไฟล์ต่าง ๆ เข้ามาในไฟล์</span> JSP <tt><span style="font-family: "cordia new" , "sans-serif"; mso-ansi-font-size: 16.0pt; mso-bidi-font-size: 16.0pt;"><jsp:include
page="relativeURL" flush="true"/><span lang="TH"> </span></span></tt><span lang="TH">ซึ่งไฟล์นั้นจะต้องอยู่ใน</span> uri <span lang="TH">เดียวกันกับไฟล์ </span>jsp
<span lang="TH">นั่น และ </span>flush <span lang="TH">จะใช้ในการล้าง </span>buffer <span lang="TH">ก่อนจะรวมไฟล์เข้ามา<o:p></o:p></span></span></div>
<div style="margin-left: 49.65pt; mso-list: l1 level1 lfo2; text-align: justify; text-indent: -7.1pt; text-justify: inter-cluster;">
<!--[if !supportLists]--><span style="font-family: "symbol"; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal;"> </span></span><!--[endif]--><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">jsp:plugin <span lang="TH">ใช้ในกรณีที่ต้องทำงานร่วมกับเบราว์เซอร์ </span> Netscape Navigator <span lang="TH">และ</span>
Internet Explorer <span lang="TH">จำเป็นต้องใช้แทกนี้ในการเรียกใช้งาน</span>
applet <span lang="TH">หรือ </span>flash <o:p></o:p></span></div>
<div style="margin-left: 49.65pt; mso-list: l1 level1 lfo2; text-align: justify; text-indent: -7.1pt; text-justify: inter-cluster;">
<!--[if !supportLists]--><span style="font-family: "symbol"; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal;"> </span></span><!--[endif]--><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">jsp:param <span lang="TH">ใช้ในการกำหนดพารามิเตอร์ของ </span>jsp:include jsp:forward jsp:params <span lang="TH">และ </span><tt><span style="font-family: "cordia new" , "sans-serif"; mso-ansi-font-size: 16.0pt; mso-bidi-font-size: 16.0pt;">jsp:plugin</span></tt>
<o:p></o:p></span></div>
<div style="margin-left: 49.65pt; mso-list: l1 level1 lfo2; text-align: justify; text-indent: -7.1pt; text-justify: inter-cluster;">
<!--[if !supportLists]--><span style="font-family: "symbol"; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal;"> </span></span><!--[endif]--><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">jsp:fallback <span lang="TH">ใช้แสดงข้อความที่กำหนดเมื่อเบราว์เซอร์ไม่สนับสนุน
</span>applets<o:p></o:p></span></div>
<br />
<div class="MsoNoSpacing" style="text-align: justify; text-indent: 36.0pt; text-justify: inter-cluster;">
</div>
<b><span lang="TH" style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">ตัวอย่าง<o:p></o:p></span></b><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEid6_rooozdK1pyBalfp9Q_D179MCSpf_EgXYt3ZDclAo-KoDGe_yZ3VPvHv0iRnxiFa1Gd9cJ9ENyqswS-Frg1i8uxYKpKxxwrxdqRHsHzUQFSRE1JNS09ShY9av51MSQHjPqze2oYGa8c/s1600/capture-20151129-092949.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="73" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEid6_rooozdK1pyBalfp9Q_D179MCSpf_EgXYt3ZDclAo-KoDGe_yZ3VPvHv0iRnxiFa1Gd9cJ9ENyqswS-Frg1i8uxYKpKxxwrxdqRHsHzUQFSRE1JNS09ShY9av51MSQHjPqze2oYGa8c/s320/capture-20151129-092949.png" width="320" /></a></div>
<div style="margin-left: 49.65pt; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -7.1pt;">
<!--[if !supportLists]--><tt><span style="font-family: "symbol"; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal;"> </span></span></tt><!--[endif]--><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">jsp:forward <span lang="TH">ใช้ในการส่งต่อ </span>request <span lang="TH">และ</span> response <span lang="TH">ไปยัง </span>JSP <span lang="TH">หรือ</span> servlet <span lang="TH">อื่นโดยไม่กลับมาที่หน้านี้อีก
</span><tt><span style="font-family: "cordia new" , "sans-serif"; mso-ansi-font-size: 16.0pt; mso-bidi-font-size: 16.0pt;"><jsp:forward page="urlSpec"
/> <o:p></o:p></span></tt></span></div>
<div style="margin-left: 49.65pt; mso-list: l0 level1 lfo1; text-indent: -7.1pt;">
<!--[if !supportLists]--><span style="font-family: "symbol"; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal;"> </span></span><!--[endif]--><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">jsp:useBean <span lang="TH">ใช้สำหรับเรียกใช้บีน </span><o:p></o:p></span></div>
<div style="margin-left: 49.65pt; mso-list: l0 level1 lfo1; text-indent: -7.1pt;">
<!--[if !supportLists]--><span style="font-family: "symbol"; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal;"> </span></span><!--[endif]--><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">jsp:setProperty <span lang="TH">ใช้เซตคุณสมบัติหรือค่าตัวแปรให้กับบีน ไม่จำเป็นต้องใช้ใน </span>useBean</span></div>
<div style="margin-left: 49.65pt; mso-list: l0 level1 lfo1; text-indent: -7.1pt;">
<span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxShJMXOccmZhM466tH68Ds6oHECXgaUZ3j2x4Cw9c2wvx2-YdFr4lnds_WvXYl_bhV2gNt6xof215WAW2GHnrPC1aNKqek77wSibGX5S7D_gqqM12nbrAm-lSMZ4R6DrlWnnAQ0sEG011/s1600/capture-20151129-093232.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="39" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxShJMXOccmZhM466tH68Ds6oHECXgaUZ3j2x4Cw9c2wvx2-YdFr4lnds_WvXYl_bhV2gNt6xof215WAW2GHnrPC1aNKqek77wSibGX5S7D_gqqM12nbrAm-lSMZ4R6DrlWnnAQ0sEG011/s320/capture-20151129-093232.png" width="320" /></a></div>
<span lang="TH" style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">สามารถใช้
</span><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">* <span lang="TH">เพื่อแมปค่าของ</span> element <span lang="TH">เข้ากับ ค่า </span>property
<span lang="TH">ต่างๆของ </span>Bean <span lang="TH">โดยอัตโนมัติ </span><tt><span style="font-family: "cordia new" , "sans-serif"; mso-ansi-font-size: 16.0pt; mso-bidi-font-size: 16.0pt;"><o:p></o:p></span></tt></span><br />
<div style="margin-left: 54.0pt;">
<tt><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;"><jsp:setProperty name="myBeanInstance"
property="*"/></span></tt><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;"><o:p></o:p></span></div>
<div style="margin-left: 49.65pt; mso-list: l0 level1 lfo1; text-indent: -7.1pt;">
<!--[if !supportLists]--><span style="font-family: "symbol"; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal;"> </span></span><!--[endif]--><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">jsp:getProperty <span lang="TH">ใช้ดึงคุณสมบัติจากบีน </span><o:p></o:p></span></div>
<div class="MsoNormal">
<b><span lang="TH" style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; line-height: 115%;">การใช้งานบีนบน </span></b><b><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; line-height: 115%;">JSP<o:p></o:p></span></b></div>
<div class="MsoNoSpacing" style="text-align: justify; text-justify: inter-cluster;">
<span lang="TH" style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">การพัฒนาแอปพลิเคชั่นบน </span><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">jsp <span lang="TH">สามารถทำได้สะดวก รวดเร็วคล้ายกับแอปพลิเคชั่นภาษาจาวาอื่นทั่วไป
เนื่องจากใช้จาวาบีนได้
การใช้บีนจะช่วยลดความซ้ำซ้อนในการสร้างเมธอดที่มีการใช้งานบ่อยๆ
และลดความผิดพลาดในกรณีที่ต้องแก้ไขเมธอดเหล่านั้นซึ่งสามารถกระทำได้ในไฟล์เดียว
การเรียกใช้งานบีน บน </span>jsp <span lang="TH">ทำได้โดยใช้ </span>jsp:useBean<span lang="TH"> ดังนี้<o:p></o:p></span></span></div>
<div class="MsoNoSpacing" style="text-align: justify; text-indent: 36.0pt; text-justify: inter-cluster;">
<span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;"><jsp:useBean
id="myBean" class="package.MyBeanClass"
scope="request"><o:p></o:p></span></div>
<div class="MsoNoSpacing" style="margin-left: 36.0pt; text-align: justify; text-indent: 36.0pt; text-justify: inter-cluster;">
<span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">id <span lang="TH">คือชื่ออ้างอิงของบีน เวลาเรียกใช้พารามิเตอร์ หรือ เซตคุณสมบัติ</span><o:p></o:p></span></div>
<div class="MsoNoSpacing" style="margin-left: 36.0pt; text-align: justify; text-indent: 36.0pt; text-justify: inter-cluster;">
<span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">class <span lang="TH"> คือ
คลาสของบีน</span><o:p></o:p></span></div>
<div class="MsoNoSpacing" style="margin-left: 36.0pt; text-align: justify; text-indent: 36.0pt; text-justify: inter-cluster;">
<span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">scope <span lang="TH"> คือ
ขอบเขตการทำงานของบีน ประกอบด้วย<o:p></o:p></span></span></div>
<div class="MsoNoSpacing" style="margin-left: 36.0pt; text-align: justify; text-indent: 36.0pt; text-justify: inter-cluster;">
<span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">page <span lang="TH">บีนจะถูกสร้างทุกๆครั้งเมื่อมีการเรียกหน้านั้นและถูกทำลายเมื่อออกจากหน้านั้นไป
<o:p></o:p></span></span></div>
<div class="MsoNoSpacing" style="text-align: justify; text-indent: 70.9pt; text-justify: inter-cluster;">
<span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">request
<span lang="TH">บีนจะถูกสร้างทุกๆครั้งเมื่อมีการเรียกหน้านั้นและเมื่อไปหน้าอื่นที่เรียกบีนตัวเดียวกันก็ยังสามารถใช้งานบีนตัวนั้นได้อยู่<o:p></o:p></span></span></div>
<div class="MsoNoSpacing" style="margin-left: 34.9pt; text-align: justify; text-indent: 36.0pt; text-justify: inter-cluster;">
<span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">session <span lang="TH">บีนจะถูกสร้างขึ้นและเก็บข้อมูลจนกว่าจะหมด
</span>session <span lang="TH">ของผู้ใช้<o:p></o:p></span></span></div>
<div class="MsoNoSpacing" style="text-align: justify; text-indent: 70.9pt; text-justify: inter-cluster;">
<span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">application
<span lang="TH">บีนที่มีเพียงชุดเดียว
ผู้ใช้งานทุกคนจะใช้บีนนี้ร่วมกันตั้งแต่เริ่มต้นกระทั่งแอปพลิเคชั่นสิ้นสุดการทำงาน</span></span><o:p></o:p></div>
<div class="MsoNoSpacing" style="text-align: justify; text-indent: 36.0pt; text-justify: inter-cluster;">
<span lang="TH" style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">การสร้างบีนควรกำหนดชื่อ
</span><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">package
<span lang="TH">เพื่องานในการอ้างอิงและการติดตั้งบีน โดยปกติแล้ว แต่ละแอปพลิเคชั่นบีนจะถูกคอมไพล์แล้วเก็บไว้ที่
</span>Application_folder\WEB-INF\classes\package\<span lang="TH">
เว้นแต่บีนที่ถูกใช้งานบ่อยๆอาจเก็บไว้ที่
</span>%TOMCAT_HOME% \shared\classes\package <span lang="TH">เพื่อให้ทุกแอปพลิเคชั่นนำไปใช้ได้
</span><o:p></o:p></span></div>
<div class="MsoNoSpacing" style="text-indent: 36.0pt;">
<br /></div>
<div class="MsoNormal">
<b><span lang="TH" style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; line-height: 115%;">การใช้งาน </span></b><b><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; line-height: 115%;">JSP
<span lang="TH">ร่วมกับฐานข้อมูล</span><o:p></o:p></span></b></div>
<div class="MsoNoSpacing" style="text-align: justify; text-indent: 36.0pt; text-justify: inter-cluster;">
<span lang="TH" style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">เมื่อใช้
</span><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;">JSP
<span lang="TH">เชื่อมโยงกับฐานข้อมูลคล้ายกับแอปพลิเคชั่นภาษาจาวาโดยทั่วไป คือ</span><b><o:p></o:p></b></span></div>
<div class="MsoListParagraphCxSpFirst" style="margin-left: 49.65pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -7.1pt; text-justify: inter-cluster;">
<!--[if !supportLists]--><span style="font-family: "symbol"; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; line-height: 115%;">import java.sql.* <span lang="TH">เสมอ</span><o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 49.65pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -7.1pt; text-justify: inter-cluster;">
<!--[if !supportLists]--><span style="font-family: "symbol"; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="TH" style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; line-height: 115%;">ประกาศใช้งาน </span><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; line-height: 115%;">Driver
<span lang="TH">ของฐานข้อมูล</span><o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 49.65pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -7.1pt; text-justify: inter-cluster;">
<!--[if !supportLists]--><span style="font-family: "symbol"; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="TH" style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; line-height: 115%;">กำหนด </span><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; line-height: 115%;">URL
username/password<span lang="TH"> ของฐานข้อมูล <o:p></o:p></span></span></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 49.65pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -7.1pt; text-justify: inter-cluster;">
<!--[if !supportLists]--><span style="font-family: "symbol"; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="TH" style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; line-height: 115%;">สร้าง </span><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; line-height: 115%;">Connection<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 49.65pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -7.1pt; text-justify: inter-cluster;">
<!--[if !supportLists]--><span style="font-family: "symbol"; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="TH" style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; line-height: 115%;">สร้าง </span><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; line-height: 115%;">Statement<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 49.65pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -7.1pt; text-justify: inter-cluster;">
<!--[if !supportLists]--><span style="font-family: "symbol"; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="TH" style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; line-height: 115%;">นำ </span><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; line-height: 115%;">Statement
<span lang="TH">มาใช้ในเชื่อมโยงกับฐานข้อมูล</span><o:p></o:p></span></div>
<div class="MsoListParagraphCxSpLast" style="margin-left: 49.65pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -7.1pt; text-justify: inter-cluster;">
<!--[if !supportLists]--><span style="font-family: "symbol"; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="TH" style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; line-height: 115%;">หลังจากใช้งานเสร็จแล้วต้องปิด
</span><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; line-height: 115%;">Statement
<span lang="TH">และ </span>Connection <span lang="TH">ตามลำดับทุกครั้ง<o:p></o:p></span></span></div>
<div class="MsoNormal" style="text-align: justify; text-indent: 36.0pt; text-justify: inter-cluster;">
<span lang="TH" style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; line-height: 115%;">กระบวนการสร้าง </span><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; line-height: 115%;">Connection
<span lang="TH">จนกระทั่งปิด </span>Connection <span lang="TH">ต้องทำภายใน </span>Exception
Handling <span lang="TH">หรือ </span>try{……..}catch(Exception e){} <o:p></o:p></span></div>
<div class="MsoNormal" style="text-indent: 36.0pt;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="MsoNormal">
<b><span lang="TH" style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; line-height: 115%;">ตัวอย่าง</span></b><b><span style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBZ8OW2JRxcP8Jou5CmuesGZvgNOYg75G2B5Dr1wGTQPlBCQFzBk9bDnwuQYJrawIgrgXyW-SIeBAptyGjTQgLt-AiIbkbf92YHVzdebcHAzC_WGUAx2K91eIinp1bvAq-KX7lT-92NZcb/s1600/capture-20151129-093417.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="276" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBZ8OW2JRxcP8Jou5CmuesGZvgNOYg75G2B5Dr1wGTQPlBCQFzBk9bDnwuQYJrawIgrgXyW-SIeBAptyGjTQgLt-AiIbkbf92YHVzdebcHAzC_WGUAx2K91eIinp1bvAq-KX7lT-92NZcb/s320/capture-20151129-093417.png" width="320" /></a><a href="https://draft.blogger.com/blogger.g?blogID=3145736241552237583" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"></a></div>
<div class="MsoNormal">
<b><span lang="TH" style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt; line-height: 115%;"><br /></span></b></div>
<div style="margin-left: 49.65pt; mso-list: l0 level1 lfo1; text-indent: -7.1pt;">
<br /></div>
<b><span lang="TH" style="font-family: "cordia new" , "sans-serif"; font-size: 16.0pt;"><br /></span></b>Anonymoushttp://www.blogger.com/profile/12818040502222493731noreply@blogger.com0tag:blogger.com,1999:blog-3145736241552237583.post-29774717706227397202015-11-29T09:19:00.005-08:002015-11-29T09:19:38.070-08:00<h2 style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 18px; font-weight: normal; line-height: 1.4em; margin: 0.25em 0px 0px; padding: 0px 0px 4px;">
<span style="background-color: white;">ข้อดีภาษา JSP</span></h2>
<h3 style="font-family: 'Trebuchet MS', arial, sans-serif; font-size: 18px; font-weight: normal; line-height: 1.4em; margin: 0.25em 0px 0px; padding: 0px 0px 4px;">
<span style="background-color: white;"><a href="https://draft.blogger.com/null" name="TOC--JSP-" style="text-decoration: underline;"></a><span style="font-size: small; line-height: normal;"><span style="font-family: arial, sans-serif;">- JSP สามารถเรียนรู้และใช้งานได้ง่าย</span></span></span></h3>
<h3 style="font-family: 'Trebuchet MS', arial, sans-serif; font-size: 18px; font-weight: normal; line-height: 1.4em; margin: 0.25em 0px 0px; padding: 0px 0px 4px;">
<span style="background-color: white;"><a href="https://draft.blogger.com/null" name="TOC--JSP-1" style="text-decoration: underline;"></a><span style="font-size: small; line-height: normal;"><span style="font-family: arial, sans-serif;">- JSP สามารถทำงานได้อย่างมีประสิทธิภาพในฝั่งเซิร์ฟเวอร์</span></span></span></h3>
<h3 style="font-family: 'Trebuchet MS', arial, sans-serif; font-size: 18px; font-weight: normal; line-height: 1.4em; margin: 0.25em 0px 0px; padding: 0px 0px 4px;">
<span style="background-color: white;"><a href="https://draft.blogger.com/null" name="TOC--JSP-compiled-" style="text-decoration: underline;"></a><span style="font-size: small; line-height: normal;"><span style="font-family: arial, sans-serif;">- JSP จะทำการ compiled ก่อนเสมอ ที่จะส่งไปรันบนเซิร์ฟเวอร์</span></span></span></h3>
<h3 style="font-family: 'Trebuchet MS', arial, sans-serif; font-size: 18px; font-weight: normal; line-height: 1.4em; margin: 0.25em 0px 0px; padding: 0px 0px 4px;">
<span style="background-color: white;"><a href="https://draft.blogger.com/null" name="TOC--JSP-servlets-" style="text-decoration: underline;"></a><span style="font-size: small; line-height: normal;"><span style="font-family: arial, sans-serif;">- JSP สามารถใช้งานร่วมกับ servlets ได้</span></span></span></h3>
<h3 style="font-family: 'Trebuchet MS', arial, sans-serif; font-size: 18px; font-weight: normal; line-height: 1.4em; margin: 0.25em 0px 0px; padding: 0px 0px 4px;">
<span style="background-color: white;"><a href="https://draft.blogger.com/null" name="TOC--JSP-J2EE-JSP-" style="text-decoration: underline;"></a><span style="font-size: small; line-height: normal;"><span style="font-family: arial, sans-serif;">- JSP เป็นส่วนหนึ่งของ J2EE ซึ่งหมายความว่า JSP สามารถเป็นส่วนในการทำงานที่ง่าย หรือซับซ้อนได้</span></span></span></h3>
<h3 style="font-family: 'Trebuchet MS', arial, sans-serif; font-size: 18px; font-weight: normal; line-height: 1.4em; margin: 0.25em 0px 0px; padding: 0px 0px 4px;">
<span style="background-color: white;"><a href="https://draft.blogger.com/null" name="TOC--JSP-java-" style="text-decoration: underline;"></a><span style="font-size: small; line-height: normal;"><span style="font-family: arial, sans-serif;">- JSP เขียนด้วยภาษา java จึงทำให้มีประสิทธิภาพ และใช้งานได้ง่ายกว่า</span></span></span></h3>
<h3 style="font-family: 'Trebuchet MS', arial, sans-serif; font-size: 18px; font-weight: normal; line-height: 1.4em; margin: 0.25em 0px 0px; padding: 0px 0px 4px;">
<span style="background-color: white;"><a href="https://draft.blogger.com/null" name="TOC--JSP-webserver-Microsoft-Web-servers-" style="text-decoration: underline;"></a><span style="font-size: small; line-height: normal;"><span style="font-family: arial, sans-serif;">- JSP สามารถใช้กับ webserver ระบบปฏิบัติการใด ๆ ได้ ไม่เฉพาะแต่ของ Microsoft Web servers เท่านั้น</span></span></span></h3>
<div style="font-family: 'Lucida Grande', 'Lucida Sans Unicode', sans-serif; font-size: 13.3333330154419px; line-height: 21.3333320617676px; text-align: justify;">
<span style="background-color: white; font-size: small; line-height: normal;"><span style="font-family: arial, sans-serif;"><br /></span></span></div>
<div style="font-family: 'Lucida Grande', 'Lucida Sans Unicode', sans-serif; font-size: 13.3333330154419px; line-height: 21.3333320617676px; text-align: justify;">
<h2 style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 18px; font-weight: normal; line-height: 1.4em; margin: 0.25em 0px 0px; padding: 0px 0px 4px; text-align: left;">
<span style="background-color: white;">ข้อเสียภาษา JSP</span></h2>
</div>
<div style="font-family: 'Lucida Grande', 'Lucida Sans Unicode', sans-serif; font-size: 13.3333330154419px; line-height: 21.3333320617676px; text-align: justify;">
<span style="background-color: white; font-family: arial, sans-serif; font-size: small;"><span style="line-height: normal; text-align: left;"> ข้อเสียที่เห็นได้ชัดคือการยากในการจัดเก็บ และการยากในการย้ายไฟล์จากเซฟเวอร์หนึ่ง ไปยังอีกเซฟเวอร์หนึ่ง เพราะโดยทั่วไปแต่ละ webserver</span><span style="line-height: normal; text-align: left;"> จะมีลักษณะการจัดเก็บไฟล์ไม่เหมือนกัน แต่เมื่อ Java Servlet Specification เวอร์ชั่น 2.2 ออกมา เซฟเวอร์ที่ใช้รัน Servlet v2.2 จะถูกบังคับให้มีต้องการสนันสนุนการจัดเก็บไฟล์แบบหนึ่ง ที่เรียกว่า Web Applicaton</span><span style="line-height: normal; text-align: left;"> </span></span></div>
<div style="font-family: 'Lucida Grande', 'Lucida Sans Unicode', sans-serif; font-size: 13.3333330154419px; line-height: 21.3333320617676px; text-align: justify;">
<span style="background-color: white; font-family: arial, sans-serif; font-size: small;"><br style="line-height: normal; text-align: left;" /><span style="line-height: normal; text-align: left;"> web application คือกลุ่มของไดเรคทรอรี่และไฟล์ที่อาจจะประกอบด้วย html, jsp, servlet, javabean และอื่น ๆ ซึ่งอยู่รวมกันในลักษณะของระบบไฟล์ (file system) หรือถูกอัดอยู่ในไฟล์เดียวกันโดยจะเรียกว่า Web Archive (.war) ไฟล์ ซึ่งมีประโยชน์ในการโยกย้ายและติดตั้งจากเซฟเวอร์หนึ่งไปยังอีกเซฟเวอร์หนึ่ง </span></span></div>
<div style="font-family: 'Lucida Grande', 'Lucida Sans Unicode', sans-serif; font-size: 13.3333330154419px; line-height: 21.3333320617676px; text-align: justify;">
<span style="font-family: arial, sans-serif; font-size: small;"><span style="background-color: white; line-height: normal; text-align: left;"><br /></span></span></div>
<div style="font-family: 'Lucida Grande', 'Lucida Sans Unicode', sans-serif; font-size: 13.3333330154419px; line-height: 21.3333320617676px; text-align: justify;">
<h3 style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 18px; font-weight: normal; line-height: 1.4em; margin: 0.25em 0px 0px; padding: 0px 0px 4px; text-align: left;">
<span style="background-color: white;"><a href="https://draft.blogger.com/null" name="TOC-JSP3" style="text-decoration: underline;"></a>การใช้งานภาษา JSP</span></h3>
</div>
<div style="font-family: 'Lucida Grande', 'Lucida Sans Unicode', sans-serif; font-size: 13.3333330154419px; line-height: 21.3333320617676px; text-align: justify;">
<span style="background-color: white; line-height: normal; text-align: left;"><span style="font-family: arial, sans-serif; font-size: small;"> 1. ผู้ใช้ เปิดโปรแกรมเว็บบราวเซอร์ และพิมพ์ URL ลงในช่อง Address ของเว็บราวเซอร์เพื่อระบุร้องขอ ไฟล์ JSP เช่น http://locahost/hello.jsp จากนั้นกด Enter เครื่องคอมพิวเตอร์ของผู้ใช้ก็จะส่งการร้องขอไฟล์ hello.jsp ไปยัง Wed server ( เรียกว่า HTTP request )</span></span></div>
<div style="font-family: 'Lucida Grande', 'Lucida Sans Unicode', sans-serif; font-size: 13.3333330154419px; line-height: 21.3333320617676px; text-align: justify;">
<span style="background-color: white; font-family: arial, sans-serif; font-size: small;"><span style="line-height: normal; text-align: left;"> </span><span style="line-height: normal; text-align: left;">2. Wed server ส่งต่อการร้องขอของ Client ไปยัง Wed container คือ ส่งการร้องขอไฟล์ชื่อ hello.jsp ไปยัง Wed container</span></span></div>
<div style="font-family: 'Lucida Grande', 'Lucida Sans Unicode', sans-serif; font-size: 13.3333330154419px; line-height: 21.3333320617676px; text-align: justify;">
<span style="background-color: white; line-height: normal; text-align: left;"><span style="font-family: arial, sans-serif; font-size: small;"> 3. Wed container ทำการประมวลผลไฟล์ hello.jsp ตามที่ Client ร้องขอเข้ามา</span></span></div>
<div style="font-family: 'Lucida Grande', 'Lucida Sans Unicode', sans-serif; font-size: 13.3333330154419px; line-height: 21.3333320617676px; text-align: justify;">
<span style="background-color: white; line-height: normal; text-align: left;"><span style="font-family: arial, sans-serif; font-size: small;"> 4. เมื่อประมงลผลเสร็จเรียบร้อย Wed container จะส่งผลลัพธ์ที่ได้กลับไปยัง Wed server</span></span></div>
<div style="font-family: 'Lucida Grande', 'Lucida Sans Unicode', sans-serif; font-size: 13.3333330154419px; line-height: 21.3333320617676px; text-align: justify;">
<span style="background-color: white; line-height: normal; text-align: left;"><span style="font-family: arial, sans-serif; font-size: small;"> 5. Wed server ส่งผลลัพธ์ที่ได้กลับคืนไปยัง Client ( เรียกว่า HTTP request ) ซึ่งทำให้ผู้ใช้เห็นผลลัพธ์ ของไฟล์ hello.jsp แสดงออกมาที่เว็บบราวเซอร์นั่นเอง</span></span></div>
Anonymoushttp://www.blogger.com/profile/12818040502222493731noreply@blogger.com0tag:blogger.com,1999:blog-3145736241552237583.post-80894970264411069802015-11-29T09:17:00.008-08:002015-11-29T09:17:39.141-08:00<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
</div>
<h2>
<span style="background-color: white;"><span lang="TH" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-family: 'Angsana New', serif; font-size: 18pt;">การเขียนโปรแกรมใช้งานอย่างง่าย</span></span></h2>
<span style="background-color: white;"><span style="font-family: Georgia, serif; font-size: 10pt;">
<!--[if !supportLineBreakNewLine]--><br />
<!--[endif]--></span><span style="font-family: "Angsana New","serif"; font-size: 14.0pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></span><br />
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;">
<span style="background-color: white;"><b><span lang="TH" style="font-family: 'Angsana New', serif; font-size: 18pt;">ตัวอย่างแฟ้ม </span></b><b><span style="font-family: 'Angsana New', serif; font-size: 18pt;">a.jsp <span lang="TH">ที่สร้างขึ้นด้วย </span>notepad</span></b><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;">
<span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 18pt;"><body><pre><o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;">
<span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 18pt;"><%<o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;">
<span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 18pt;">for (int
i=1;i<=10;i++)<o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;">
<span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 18pt;">{<o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;">
<span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 18pt;"> out.println(i);<o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;">
<span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 18pt;">}<o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;">
<span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 18pt;">%><o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;">
<span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 18pt;"></pre></body><o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;">
<span style="background-color: white;"><b><span lang="TH" style="font-family: 'Angsana New', serif; font-size: 18pt;">ตัวอย่างแฟ้ม </span></b><b><span style="font-family: 'Angsana New', serif; font-size: 18pt;">b.jsp</span></b><span style="font-family: 'Angsana New', serif; font-size: 18pt;"> :: <span lang="TH">อ่านข้อมูลจาก </span>DSN <span lang="TH">ใน </span>ODBC
<span lang="TH">มาแสดงผล</span></span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;">
<span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 18pt;"><body><o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;">
<span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 18pt;"><%@ page
import="java.sql.*" %><o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;">
<span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 18pt;"><%<o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;">
<span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 18pt;"> Connection connection;<o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;">
<span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 18pt;"> Statement statement;<o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;">
<span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 18pt;"> String sourceURL =
"jdbc:odbc:empl";<o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;">
<span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 18pt;">
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");<o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;">
<span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 18pt;"> connection =
DriverManager.getConnection(sourceURL);<o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;">
<span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 18pt;"> statement = connection.createStatement();<o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;">
<span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 18pt;"> String sql = "select * from empl";<o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;">
<span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 18pt;"> ResultSet myresult =
statement.executeQuery(sql);<o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;">
<span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 18pt;"> while (myresult.next()) { <o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;">
<span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 18pt;">
out.println(myresult.getString("emplid") +
"<br>");<o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;">
<span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 18pt;"> } <o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;">
<span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 18pt;"> myresult.close();<o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;">
<span style="background-color: white; color: blue; font-family: 'Courier New'; font-size: 18pt;">%><o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin-bottom: 0.0001pt;">
<span style="background-color: white;"><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman";"></body></span><span style="font-family: 'Angsana New', serif; font-size: 14pt;"><o:p></o:p></span></span></div>
<br />
<div class="MsoNormal">
<br /></div>
Anonymoushttp://www.blogger.com/profile/12818040502222493731noreply@blogger.com0tag:blogger.com,1999:blog-3145736241552237583.post-10198113866916277192015-11-29T09:16:00.001-08:002015-11-29T09:16:03.906-08:00<div class="separator" style="clear: both; text-align: center;">
<iframe width="320" height="266" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/Byd4YfwsuxA/0.jpg" src="https://www.youtube.com/embed/Byd4YfwsuxA?feature=player_embedded" frameborder="0" allowfullscreen></iframe></div>
<h3 class="r" style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 18px; font-weight: normal; margin: 0px; overflow: hidden; padding: 0px; text-overflow: ellipsis; white-space: nowrap;">
<a data-spark-safe-link="link1" href="https://www.youtube.com/watch?v=Byd4YfwsuxA" style="color: #660099; cursor: pointer; text-decoration: none;" target="_blank">การเขียน JAVA JSP แบบ MVC ตอนที่ 1</a></h3>
Anonymoushttp://www.blogger.com/profile/12818040502222493731noreply@blogger.com0tag:blogger.com,1999:blog-3145736241552237583.post-18772312566171801502015-11-29T09:13:00.003-08:002015-11-29T09:13:20.164-08:00<div class="separator" style="clear: both; text-align: center;">
<iframe width="320" height="266" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/srqmBeCZADA/0.jpg" src="https://www.youtube.com/embed/srqmBeCZADA?feature=player_embedded" frameborder="0" allowfullscreen></iframe></div>
<h3 class="r" style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 18px; font-weight: normal; margin: 0px; overflow: hidden; padding: 0px; text-overflow: ellipsis; white-space: nowrap;">
<a data-spark-safe-link="link2" href="https://www.youtube.com/watch?v=srqmBeCZADA" style="color: #660099; cursor: pointer; text-decoration: none;" target="_blank">การเขียน JAVA JSP แบบ MVC ตอนที่ 2</a></h3>
Anonymoushttp://www.blogger.com/profile/12818040502222493731noreply@blogger.com0