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

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. ___

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 List countryCodes = new ArrayList( Arrays.asList( "de", "en", "it" )); public static Map co

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 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 ma

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 c

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 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 -Origi

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 from a map. d. The fish are biting. Get more visit

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 lo