Re: How do you provide a Map from the application scope for the list of a s:select

2007-03-19 Thread Piero Sartini
Am Donnerstag, 15. März 2007 schrieb Dave Newton: --- Piero Sartini [EMAIL PROTECTED] wrote: --- code --- Are you sure you are using the right Action to reach the JSP? I cannot duplicate the problem with identical code. (I am not using JSPX, although I'm not sure that would matter.) Uh -

How do you provide a Map from the application scope for the list of a s:select

2007-03-15 Thread David Harland
How do you provide a Map from the application scope for the list of a s:select. I keep getting the following error The requested list key 'referenceLookup.idQuestionOptions' could not be resolved as a collection/array/map/enumeration/iterator type. Example: people or people.{name} - [unknown

Re: How do you provide a Map from the application scope for the list of a s:select

2007-03-15 Thread Piero Sartini
I do have the same Problem. But my map does not come from app-context. The error is the same: tag 'select', field 'list', name 'country': The requested list key 'countryMap' could not be resolved as a collection/array/map/enumeration/iterator type. Example: people or people. {name} - [unknown

Re: How do you provide a Map from the application scope for the list of a s:select

2007-03-15 Thread Dave Newton
--- Piero Sartini wrote: return Constants.getCountryMap(); What does Constants.getCountryMap() return? I've never seen any issues populating an s:select.../ from a map. d. The fish are biting.

RE: How do you provide a Map from the application scope for the list of a s:select

2007-03-15 Thread David Harland
We are running struts 1 and 2 in parallel. Struts 1 is putting the Map into application scope. A jsp running in struts 2 using struts 2 tags is trying to use this map to populate a select. Do I have to copy the map into the action for it to work. That seems a bit of a waste of time

Re: How do you provide a Map from the application scope for the list of a s:select

2007-03-15 Thread Piero Sartini
Am Donnerstag, 15. März 2007 schrieb Dave Newton: --- Piero Sartini wrote: return Constants.getCountryMap(); What does Constants.getCountryMap() return? the map looks like: {de=de, it=it, en=en} - To unsubscribe,

Re: How do you provide a Map from the application scope for the list of a s:select

2007-03-15 Thread Dave Newton
--- Piero Sartini [EMAIL PROTECTED] wrote: Am Donnerstag, 15. März 2007 schrieb Dave Newton: --- Piero Sartini wrote: return Constants.getCountryMap(); What does Constants.getCountryMap() return? the map looks like: {de=de, it=it, en=en} No, I want the actual code for the

RE: How do you provide a Map from the application scope for the list of a s:select

2007-03-15 Thread Dave Newton
--- David Harland [EMAIL PROTECTED] wrote: We are running struts 1 and 2 in parallel. Same webapp I assume? Struts 1 is putting the Map into application scope. A jsp running in struts 2 using struts 2 tags is trying to use this map to populate a select. How is it trying to load the map? I

RE: How do you provide a Map from the application scope for the list of a s:select

2007-03-15 Thread David Harland
Thanks thats working a dream I tried that before just forgot the # It is nearly friday ;) -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: 15 March 2007 16:58 To: Struts Users Mailing List Subject: RE: How do you provide a Map from the application scope for the list

Re: How do you provide a Map from the application scope for the list of a s:select

2007-03-15 Thread Piero Sartini
It just testing-code and does not make much sense. but here we go. I had a list before .. so the map is constructed from the list. --- code --- public static ListString countryCodes = new ArrayListString( Arrays.asList( de, en, it )); public static

Re: How do you provide a Map from the application scope for the list of a s:select

2007-03-15 Thread Dave Newton
--- Piero Sartini [EMAIL PROTECTED] wrote: --- code --- Are you sure you are using the right Action to reach the JSP? I cannot duplicate the problem with identical code. (I am not using JSPX, although I'm not sure that would matter.) d.