Problem:
The 'session' and the 'request' are "global" pools. There is a need to
manage the namespace of the attributes stored in these pools. In
particular, when the developers use more of Tiles to componentize the
software, there is a need to avoid name clash between the including and
included pages.
Proposal:
Introduce a <bean:prefix prefix="myPrefix"> tag.
Usage:
<bean:prefix prefix="myPrefix">
<bean:write name="person" property="name"/>
<bean:write name="account" property="balance"/>
</bean:prefix>
is equivalent to
<bean:write name="myPrefix.person" property="name"/>
<bean:write name="myPrefix.account" property="balance"/>
If people think it's useful, I'll do the code and submit the patch.
p.s. Open question: The same mechanism can apply to <html:*> taglibs as
well. If so, where should this <?:prefix> live?
--
John Yu Scioworks Technologies
e: [EMAIL PROTECTED] w: +(65) 873 5989
w: http://www.scioworks.com m: +(65) 9782 9610
Scioworks Camino - "Rapid WebApp Assembly for Struts"
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>