http://java.sun.com/products/jsp/reference/techart/unifiedEL.html
That is the description of the UEL, https://issues.apache.org/struts/browse/WW-2213 That is where I discovered the symbol clash. What tipped me off is that you mentioned using the full @java.util.Hashmap@ notation and it worked. Since it's still not working try using %{ as in - list="%{\#{'foo':'foovalue','bar':'barvalue'}}" Keep in mind that I don't think OGNL errors raise an exception, I think they are swallowed silently, so check your syntax very closely. -Wes On 12/5/07, J&M <[EMAIL PROTECTED]> wrote: > > Thanks for the reply. Very informative. I have not heard of UEL yet, can you > send me some references. I know about about EL. I tried the escape as you > suggested. But this fails with no errors and no output. > > any suggestions? > > > Wes Wannemacher wrote: > > > > My guess is that UEL is enabled in your app server. The quick fix > > would be to escape the # character - > > > > list="\#{'foo':'foovalue','bar':'barvalue'}" > > > > The problem is that UEL and OGNL both use #{, but OGNL isn't evaluated > > until after UEL attempts to evaluate it. It's a known issue, but there > > is nothing that can be done within the Struts2/XWork codebase to > > account for it. You just have to be careful when using anonymous Maps. > > > > -Wes > > > > > > > > On 12/5/07, J&M <[EMAIL PROTECTED]> wrote: > >> > >> Can anyone explain to me why the following select tag statement fails: > >> > >> <s:select label="label" name="name" list="#{'foo':'foovalue', > >> 'bar':'barvalue'}" /> > >> > >> I get the following massive trace: (note that using the "advanced" > >> version > >> as stated on > >> the opensymphony link below - with > >> list="[EMAIL PROTECTED]@{'Regular' : 'Regular', 'Decaf': > >> 'Decaf'}}" - does work ): > >> > >> > >> > >> > >> > >> > >> cilquirm wrote: > >> > > >> > the way to construct a map in ognl is > >> > > >> > %{ key : value , key : vale } > >> > > >> > > >> > > >> > > >> http://www.opensymphony.com/ognl/html/LanguageGuide/collectionConstruction.html#mapConstruction > >> > > >> > hth, > >> > -a > >> > > >> > > >> > > >> > Hartrich, James CTR USTRANSCOM J6 wrote: > >> >> > >> >> I'm iterating a collection (keys) from s:action to get corresponding > >> >> hashmap (values) from aforementioned s:action then creating multiple > >> >> s:select. > >> >> > >> >> > >> >> > >> >> Does anyone know how to construct a hashmap with ognl on a jsp? What > >> >> type is then needed on the action to populate the hashmap? > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> James > >> >> > >> >> > >> >> > >> >> > >> >> > >> > > >> > > >> > >> -- > >> View this message in context: > >> http://www.nabble.com/S2%3A-HashMap---from-jsp-to-action-tf4238260.html#a14172450 > >> Sent from the Struts - User mailing list archive at Nabble.com. > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > > > -- > > Wesley Wannemacher > > President, Head Engineer/Consultant > > WanTii, Inc. > > http://www.wantii.com > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > View this message in context: > http://www.nabble.com/S2%3A-HashMap---from-jsp-to-action-tf4238260.html#a14174057 > Sent from the Struts - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Wesley Wannemacher President, Head Engineer/Consultant WanTii, Inc. http://www.wantii.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]