Use of the Vector class
On the JSP page, get some vector data types: array, convert it to string, and convert string to the vector data type by the way: String = "SS, WW, EE ,"
Stringbuffer sb = new stringbuffer (); For (INT I = 0; I <vector. size (); I ++) {sb. append (string) vector. get (I )). append (",");} return sb. tostring (); ---------- string [] S = "SS, WW, ee ". split (","); vector v = new vector (); For (INT I = 0; I <S. length; I ++) {v. add (s [I]);} return V; vector v = new vector (); V. add ("ABC1"); V. add ("abc2"); V. add ("abc3"); V. add ("abc4"); V. add ("abc5"); string [] STR = (string []) v. toarray (New String [1]); For (INT I = 0; I <Str. length; I ++) {system. out. println (STR [I]);} note the conversion Format String [] STR = (string []) v. toarray (New String [1]); string [] STR = (string []) v. toarray (New String [1]); ---> string [] STR = (string []) v. toarray (New String [v. size ()]);