RE: Constructing key to an object in session scope

2003-12-11 Thread Kris Schneider
;-) I hate to make it more readable, but you should be able to do: Quoting Wendy Smoak <[EMAIL PROTECTED]>: > > From: Kris Schneider [mailto:[EMAIL PROTECTED] > > Another approach would be to maintain a map of maps (keyed by > > year) instead of multiple "free standing" maps. Something like:

RE: Constructing key to an object in session scope

2003-12-11 Thread Wendy Smoak
> From: Kris Schneider [mailto:[EMAIL PROTECTED] > Another approach would be to maintain a map of maps (keyed by > year) instead of multiple "free standing" maps. Something like: Clever! Job security in a single line: -- Wendy -

RE: Constructing key to an object in session scope

2003-12-11 Thread Kris Schneider
Another approach would be to maintain a map of maps (keyed by year) instead of multiple "free standing" maps. Something like: accountMap: {2001={...}, 2002={...}, ...} So your loop might look like: ... Quoting Wendy Smoak <[EMAIL PROTECTED]>: > > From: Kris Schneider [mailto:[EMAIL PROTECTED]

RE: Constructing key to an object in session scope

2003-12-11 Thread Wendy Smoak
> From: Kris Schneider [mailto:[EMAIL PROTECTED] > > Thanks for jogging my memory... You can construct the key, but you lose the ability to magically find it in any scope, you have to specify where it should look for the object. Thanks! -- Wendy Smoak

Re: Constructing key to an object in session scope

2003-12-11 Thread Kris Schneider
Maybe: ... Quoting Wendy Smoak <[EMAIL PROTECTED]>: > > In a Struts Action, I place a Map in session scope depending on what > year the user has chosen-- there may be Maps there named 2002accounts, > 2001accounts, etc. > > Now to display the contents of the Map, I tried: > > > org.apache.j

Constructing key to an object in session scope

2003-12-11 Thread Wendy Smoak
In a Struts Action, I place a Map in session scope depending on what year the user has chosen-- there may be Maps there named 2002accounts, 2001accounts, etc. Now to display the contents of the Map, I tried: org.apache.jasper.JasperException: An error occurred while evaluating custom action att