hi everybody,

I got a collection in session scope which contains a lot of properties
that I want to use to fill comboboxes etc.

the objects stored in this collection look like:

id(int), property(string), value(string)

The propertyfield indicates where the object belongs to (eg. country or
os...).
So in my JSPs I want to iterate through this collection an pick the
objects belonging to the current combobox.
That's the theory, practically there is s.th. that keeps me from doing
this.

Here is what I did so far.

my collection is called "PROPERTIES".


<html:select property="bundesland" size="1">
 <logic:iterate name="PROPERTIES" id="element" >
  <logic:equal name="element" property="property" value="bundesland">
   <html:option value="<bean:write name="element" property="id" />" >
    <bean:write name="element" property="value" />
   </html:option>
  </logic:equal>
 </logic:iterate>
</html:select>


When I call that jsp, I receive the follwing error message "equal
symbol expected" (which points at):  
<html:option value="<bean:write name="element" property="id" />" >
                                            ^^

So I replaced the doublequotes by singlequotes, which let the error
disappear, while putting the whole string "<bean:write..." into my
valuefield :-(


Does anybody ever encountered a similar problem, and solved it or does
somebody have an idea how to solve this, maybe even in a more elegant way
?

Thanks in advance,

Kind Regards,
Marc Tinnemeyer

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

Reply via email to