Announcement Announcement Module
Collapse
No announcement yet.
Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    Check out http://blogs.warwick.ac.uk/colinyate..._spring_howto/

    Comment

    Working...
    X