Using html:select trag in struts

I have a masterbean (placed in appl;ication scope as mb) holding collection of various data which is populated when application starts up.

In the page when I try to use the html:select tag it gives an error

The tag is

<html:select property="city">

<html:optionCollection name="${mb.city}"/>

</html:select>

/-

cp

[379 byte] By [CPGuptea] at [2007-11-27 9:12:01]
# 1

Try this

<c:set var="cities" value="${applicationScope.mb}" />

<html:select property="city">

<html:options collection="cities" property="city" labelProperty="city" />

</html:select>

Good luck!

PatrickWanga at 2007-7-12 21:58:08 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...