Saturday
JSP
-
การรับค่า Array กับ request getParameterValues ให้เป็นภาษาไทย UTF 8 (5,427)
[code]
ก
ด
เ
พ
บ
พ
-
การเปรียบเทียบ request getParameter กับค่า getString จาก SQL (6,033)
การเปรียบเทียบ request getParameter กับค่า getString จาก SQL
[code]String subject term id1 request getParameter "subject term id" null "" request getParameter "subject term id" toString
if subject term id1 equals rs3 getString "subject term id" { out print " selected 'selected' "
-
การพัฒนาโปรแกรม Java EE 5 โดยใช้ NetBeans 5 5 [PDF] (5,293)
Download เอกสารได้ที่
[url http software lbtech ac th attachments article 13 Exercise2 pdf]http software lbtech ac th attachments article 13 Exercise2 pdf[ url]
-
เล่นกับ Get Request และ Post Request ใน JSP (17,229)
บทความนี้จะพูดถึงการรับส่งข้อมูลระหว่าง Page ใน JSP ด้วย get และ post
การส่งข้อมูลแบบ get จะสังเกตง่ายๆคือค่าของตัวแปรแปะมากับ URL ส่วนการ Post จะไม่เห็นรวมอยู่ใน Url เหมือนแต่จะนิยมใช้ในการส่งค่าผ่าน form
[b]การรับส่งค่าแบบ GET[ b]
[img]http mockupboxme files wordpress com 2012 06 20 6 2555
-
JSP Implicit Objects (3,412)
จากบทที่แล้ว จะเห็นว่าเมื่อไรก็ตามที่เราต้องการเรียกใช้คลาสบางคลาส เราจะต้องทำการ import โดยใช้ page direction แล้วทำการเรียกใน Scriptlet ยกตัวอย่างเช่น lt % page import "java util Date" % gt nbsp nbsp lt % Date rightNow new Date % gt nbsp บางครั้งในการเขียน JSP nbsp จะมีคลาสบางคลาสท
-
JSP กับการเชื่อมต่อกับฐานข้อมูล MySQL ด้วย Netbeans (8,743)
ผมได้สร้างคลาสขึ้นมา 1 คลาส เพื่อเก็บคำสั่งเชื่อมต่อกับฐานข้อมูล ซึ่งเป็นคำสั่งที่เราจะต้องเรียกใช้บ่อยๆในหน้าเว็บเพจของJSPใดๆ ที่ต้องการทำงานกับฐานข้อมูล ให้ทำตามดังนี้
1 คลิกขวาที่โปรเจ็คของเรา เลือก [b]New > Java Class
[ b] และให้ตั้งชื่อ Class Name และ Package ดังรูป
[img]http lovejavax f
-
การเชื่อมต่อ MySQL Database โดยใช้ JSP amp Java Servlet บน NetBeans (10,064)
1 สำหรับคนที่ไม่มี NetBeans IDE ดาวน์โหลดได้จาก http www netbeans com ครับ
2 การเชื่อมต่อ Database ของ Java จำเป็นต้องมี JDBC Driver นะครับ สำหรับ MySQL ต้องดาวน์โหลดจาก http dev mysql com downloads connector j
3 เมื่อได้ mysql connector มาแล้ว extract ไปไว้ที่ๆ หาได้ง่าย ผมจะเก็บไว
-
การติดต่อ JSP กับ MySQL Connecting JSP To Mysql Database Lesson (11,803)
My brother Ravi Tamada request one mail about his college presentation He is planning to do web dynamic project So i am giving small explanation about JSP Java Server Pages to Mysql Connection structure Tomcat directory structure and simple database examples
[img]http 1 bp blogspot com N
-
ใช้ dropdownlist 2 อันประมวลผล บน JSP Using JQuery AJAX to populate select options (7,781)
IntroductionThis example shows two basic things The main thing it's illustrating is the population of a set of select options after you choose an option from a different select options list The code that builds the select options with JQuery was taken directly from this site http remysharp com 2
-
การทำ list menu 2 อัน ด้วย select tag กับ JSP (9,516)
In this example we will see two different methods to populate a dropdown box in the jsp page We use HTML select tag to do this The dropdown values are stored in two ArrayList namely countryList and stateList We use HTML optionsCollection tag to display the values present in the ArrayList In order