I'd like to see an extension of the bean references to use strings as well as integers.

For example, you can currently use

        <bean:write name="user" property="fullName"/>

and

        <bean:write name="user" property="cart[0].item"/>

I'd like to see something like

        <bean:write name="user" property="detail['full_name']"/>        

to be the same as

        <jsp:useBean id="user" scope="session" 
class="au.com.cyberlancers.managers.database.User"/>
        <%= user.getDetail("full_name") %>

I realise this breaks the java bean mold of how beans work, but I (will be) use(ing) 
this quite
heavily in the generation of dynamic forms and data. Internally to the user object, the
detail is a HashMap, although any random lookup collection would work so long as
the interfaces are correct.



        
--
Kumera - a new Open Source Content Management System
for small to medium web sites written in Perl and using XML
http://www.cyber4.org/kumera/index.html

Reply via email to