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生活筆記 發表在 痞客邦 留言(0) 人氣()