1. read TextField

     <input type ="text' name ="username" id = "username" ,,,,

    > String 物件 = request.getParamter("username")

 

2. read TextArea

   <textarea rows ="12" ,,,,, name = "opinion" ,,,,

   > String 物件 = request.getParametor("opinion")

 

3. radio Button

   <input type =" radio" name ="sport" ,,,,

   >String 物件 =request.getParameter("sport")

 

4. read CheckBox

   <input type ="checkbox" name = "music",,,,,

   >String[ ] 陣列 =request.getParametorValues("music")

 

5. read ComboBox

   <select name ="book"  size ="1" ,,,,

  String 物件 =request.getParametor("book")

 

6. read ListBox

   <select name ="book" size ="4",,,

  >String 物件 =request.getParametor("book")  

arrow
arrow
    創作者介紹
    創作者 Joe&Nah生活筆記 的頭像
    Joe&Nah生活筆記

    Joe&Nah 生活筆記

    Joe&Nah生活筆記 發表在 痞客邦 留言(0) 人氣()