Hello,

Platform : Struts 2, EJB 3.0, Glassfish 2.1

I'm having trouble using the Freemarker equivalent of the JSP Struts 2 Select Tag.

I need to convert:

<s:select list="application.userTypes" />

into the Freemarker equivalent.

userTypes is an application defined attribute. I have checked the existence of the attribute within the page and it is shown as expected.

My List/Map is defined as

       Map<Integer, String> userTypes = new HashMap<Integer, String>();
       userTypes.put(1, "AGENCY_USER");
       userTypes.put(2, "SHOP_USER");
       userTypes.put(3, "TOUR_OPERATOR_USER");

I have tried the following, none of which work (or work correclty).

<@s.select list=application.userTypes/> -- elements are placed into the select box, but are valued as 1=AGENCY_USER, 2=SHOP_USER

The following produce empty select boxes (or errors)

<@s.select list="application.userTypes"/>

<@s.select list="${application.userTypes}"/>

Does anybody have any ideas ?

Thanks



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to