Results 1 to 2 of 2

Thread:

  1. #1
    Join Date
    Sep 2005
    Posts
    1

    Default
    hi


    My application has a lot of pages binded together in the spring framework. i populated some drop-down-boxes on some of these pages from the DB. Now i want to get what the user selected in the comboboxes or radio boxes and accordingly give the user some more info from the database. i dont know how to get what the user selected in spring. i tried java script but thru that i cannot send what the user selected in a request or session variable but it didnt work.
    eg. request.setAttribute("value1",document.forms[0]._dropdownbox1.value) will not work.

    This is some piece of code from my jsp
    <spring:bind path="GroupListITBean.ITGroupList">
    <select name='ITGroupList'>
    <c:forEach items="${GroupListITBean.ITGroupList}" var="groupList">
    <option value='<c:out value="${groupList}"/>'><c:out value="${groupList}"/></option><br>/>
    </c:forEach>
    </select>

    GroupListBean is the command name give in the deployment descriptor to my command class.
    ITGroupList calls the getITGroupList() in the command class.
    The getITGroupList() gets data from the database.

    I would really appreciate if u could give me some info on this one.


  2. #2
    Join Date
    Aug 2004
    Posts
    1,905

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •