-
Sep 22nd, 2005, 11:57 AM
#1
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.
-
Sep 23rd, 2005, 04:00 AM
#2
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules