Hello,

In JSP, I could do the following:

<s:set name="entityTypeList" value="%{#{'CST':'Customer','SPL':'Supplier','OTH':'Other'}}"/> <s:select name="entity.entityType" value="%{entity.entityType}" list="entityType" emptyOption="true" />

How can I  do the same using FreeMarker ?

I get errors if I try this:

<@s.set name="entityTypeList" value="%{#{'CST':'Customer','SPL':'Supplier','OTH':'Other'}}" /> <@s.select name="entity.entityType" value="%{entity.entityType}" list="entityTypeList" emptyOption="true"/>

or this:
<@s.set name="entityTypeList" value="#{'CST':'Customer','SPL':'Supplier','OTH':'Other'}" />

and the list is not populated if I try this:

<#assign entityTypeList = {"CST":"Customer", "SPL":"Supplier" } >


Note: If I change entityTypeList for a OGNL List (not a hashmap), all works file.


I am using struts 2.0.9 and freemarker 2.3.8 on tomcat 5.5.20.

Thanks in advance for any help.
Bests,

--
---
Aristides P. Preto Jr. - [EMAIL PROTECTED] Project Manager - Information Systems Unit
INOV - Inesc Inovação - http://www.inov.pt - +351-213100444



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

Reply via email to