You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by kursy003 <kk...@yahoo.com> on 2007/04/23 06:25:45 UTC
problem
iam getting problem with <s:select> tag in struts2. I am populating a list of
values into the drop down box from the database something like search.
<struts:select label="searchCategories"
list="#{'searchCategories':#{searchCategory1}}" >
</struts:select>
In select box iam getting output as {null=null}.Please help me
regards
kursy003
--
View this message in context: http://www.nabble.com/%3Cs%3Aselect%3E-problem-tf3629073.html#a10133667
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: problem
Posted by Laurie Harper <la...@holoweb.net>.
kursy003 wrote:
> iam getting problem with <s:select> tag in struts2. I am populating a list of
> values into the drop down box from the database something like search.
>
>
> <struts:select label="searchCategories"
> list="#{'searchCategories':#{searchCategory1}}" >
> </struts:select>
>
> In select box iam getting output as {null=null}.Please help me
You have a corrupted OGNL expression ("#{...#{...}}"). Try this instead:
<s:select label="searchCategories"
list="#{'searchCategories': searchCategory1}">
</struts:select>
However, that's giving you a single name/value pair, which may not be
what you want. Hopefully it'll get you to the next step though.
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org