You can't have nested struts tags. I usually do something like this,
although there's probably a better way:
<c:set var="selectboxSize">
  <bean:message key='selectbox.size'/>
</c:set>
...
<html-el:select property="filter.topicId" size="${selectboxSize}">
  <html:optionsCollection name="topicsList" value="id" label="name"/>
</html:select>

If you're using a JSP 2.0 application server you can use the
<html:select> tag rather than <html-el:select>

-ed

On 9/28/05, Raghu Kanchustambham <[EMAIL PROTECTED]> wrote:
> Hi,
> When I use the following line...it prints a 4 on the screen. {
> selectbox.size has been defined as 4 in application.properties file }
>
> <bean:message key='selectbox.size'/>
>
>  However, the following code doesnt seem to work. Can somebody explain what
> is wrong with this? I want a select box of size 4 here. The intent is to
> 'externalize' the size of the select box so that I can configure the size of
> any select box through out the application at one place. Also if someone has
> a better way of solving it, please suggest.
>
> <html:select property="filter.topicId" size='<bean:message key="
> selectbox.size"/>'>
>
> <html:optionsCollection name="topicsList" value="id" label="name"/>
>
> </html:select>
>
>  Thanks much.
>
> Regards,
> Raghu
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to