Hi,

Maybe I'm missing something, but I am trying to use a map that I have
returned in the action (because the map is read in from a DAO) and
want to use it to populate my select box. My action contains the
method

   public Map<String, String> getFranchises(){
      return franchises.getFranchises();
   }

this method is unit tested and it is impossible for it not to return a
map, it ALWAYS will no matter what.

My select tag looks like this:
<s:select name="franchise" size="1" id="franchises" emptyOption="Make
Selection" list="franchises" />

One note of interest though is I am using the ModelDriven interface
for my action, but I would assume that OGNL would still resolve
against my action in addition to my model. when I load the page, I get
this error:

tag 'select', field 'list', name 'franchise': The requested list key
'franchises' could not be resolved as a
collection/array/map/enumeration/iterator type. Example: people or
people.{name}

Any ideas or help would be apperciated.

Thanks,
James

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

Reply via email to