Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Combobox and transferring all the values

843840Nov 19 2007 — edited Nov 20 2007
Hi everybody

In servlet 1, I hava a code that builds a 2 dim array with 3 columns (Col1, Col2 and Col3) and number of rows (dynamic) ,the array is saved as session var.

In JSP 1 , I display the array in a combo box as :
<select name="myCBO">
    <c:forEach var = "item" items = "${myArray}">
          <option value="${item[0]}"> ${item[2]} </option>
 </c:forEach>
 </select>
As can be seen, I am displaying Col3 and the value of combo box is Col1.

In servlet 2, I get the value of combo box (Col1) and then perform a search in the session var (myArray) to find Col2 and Col3, but I am looking for a better and faster way to solve this issue.

Could you please help ?

Thank you in advance
Vajra
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 18 2007
Added on Nov 19 2007
2 comments
111 views