Fix for WW-1711:

current option is not selected if actual value to check is no String (aka: nameValue resolves to type other than String)

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@504142 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
René Gielen
2007-02-06 14:06:46 +00:00
parent 017537f20a
commit 1432b02048
@@ -57,7 +57,7 @@
<#assign itemValue = stack.findString('top')/>
</#if>
<option value="${itemKey?html}"<#rt/>
<#if tag.contains(parameters.nameValue, itemKey) == true>
<#if parameters.nameValue?exists && tag.contains(parameters.nameValue.toString(), itemKey) == true>
selected="selected"<#rt/>
</#if>
>${itemValue?html}</option><#lt/>