Date: 2004-04-24T12:45:44
   Editor: 131.191.40.91 <>
   Wiki: Apache Struts Wiki
   Page: StrutsCatalogMappedBeans
   URL: http://wiki.apache.org/struts/StrutsCatalogMappedBeans

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -6,16 +6,16 @@
 {{{
 BeanMap beanMap1 = new BeanMap();
 BeanMap beanMap2 = new BeanMap();
-beanMap2.setProperty("world","Hello, World!");
-beanMap1.setProperty("map",beanMap2);
+beanMap2.setProperty("A","Hello, World!");
+beanMap1.setProperty("B",beanMap2);
 }}}
 And, assume that you have set your beanMap1 in some scope on your website, e.g. 
 {{{
-session.setAttribute("test",beanMap1);  
+session.setAttribute("C",beanMap1);  
 }}}
 Now, you can access the entry in beanMap1 as follows:
 {{{
-<bean:write name="test" property="map(map).map(world)"/>
+<bean:write name="C" property="map(B).map(A)"/>
 }}}
 This will output: 
 {{{

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

Reply via email to