On Sun, 13 Jul 2008, Gabriel Belingueres wrote:
Properties implements the Map interface, so AFAIK, it should work
accessing it as a Map.

Did you tried #attr.mapname[somekey]?

Yes...

I have an interceptor that does:

applicationMap = invocation.getInvocationContext().getApplication();
applicationMap.put("properties",props);
logger.debug("Props loaded: " + props.toString());

(when run, this sez:
2008-07-12 23:18:37,828 DEBUG com.stonekeep.congo.interceptors.DBInterceptor:138 - Props loaded: {preferredcid=2008}

In my JSP, I have:
Preferred cid is <s:property value="#attr.properties[preferredcid]"/><br>

Which, when rendered:
Pddreferred cid is

(with nothing after it)

The entire interceptor that is loading up the properties file and publishing it into the ApplicationMap is here:

http://pastebin.stonekeep.com/4949

I may be missing something painfully obvious, but... help?

        -d

--
-------------------.--------.-------------------------------.
Dave Belfer-Shevett \ KB1FWR \ JID: [EMAIL PROTECTED] \
blog:planet-geek.com >--------'-----------------------------------.
[EMAIL PROTECTED]    /   Windows98 Err#021 - Error Parsing Error    \
-------------------<        List; Please Wait For Next Error        |
                    \______________________________________________/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to