Hi Vasu,
The following code should work....
<html:select property="selProposition" multiple="true"
name="addUserForm" onchange="showProposition()">
<html:options collection="userProp"
labelProperty="label" property="value" />
</html:select>
make sure that userProp is in request.
if the above code doen't work try to set the userProp in page request
using following code.
<%
pageContext.setAttribute("userProp",
addUserForm.getUserPropositions(), PageContext.REQUEST_SCOPE);
%>
<html:select property="selProposition" multiple="true"
name="addUserForm" onchange="showProposition()">
<html:options collection="userProp"
labelProperty="label" property="value" />
</html:select>
Please let me know if you still have problems.
Venu
> Hi
>
[quoted text clipped - 46 lines]
>
> Vasu
Vasu - 09 Oct 2006 05:40 GMT
Hi Venu
thanks for ur help.
i ahve userProp in request.
<bean:define id="userProp" name="addUserForm"
property="userPropositions" />
<html:select property="selProposition" multiple="true"
name="addUserForm" onchange="showProposition()">
<logic:equal name="userProp" property="isUserPropMatch" value="1">
<html:options collection="userProp" labelProperty="label"
property="value" selected/>
</logic:equal>
<logic:notEqual name="userProp" property="isUserPropMatch" value="1">
<html:options collection="userProp" labelProperty="label"
property="value" />
</logic:notEqual>
</html:select>
i now have this code in my jsp which still does not work. i ahve
changed the query from abckend such that there is a field isMatch that
has a vlue "1" or "0" according to the propositions or the values. i
ahve been breaking my head wiht a couple of my friends at my workplace
too. Every one says that the code looks neat but wonder why i am not
able to fix it.
isUserPropMatch has get and set methods too.
kindly help.
i need help in using ur code:
> <%
> pageContext.setAttribute("userProp",
> addUserForm.getUserPropositions(), PageContext.REQUEST_SCOPE);
> %>
How do i set the userProp in jsp using this??? i ahve to get the
userProp from request and get the multiple selected values highlighted
in the lsit.
thanks
Vasu
> Hi Vasu,
> The following code should work....
[quoted text clipped - 75 lines]
> >
> > Vasu