Hello Cedric and the group:

Issue: need to retrieve properties of *myBean* in user session scope as
values for tiles attributes in request scope.

Solution from a scratch of my head:
        <jsp:useBean id="myBean" scope="session" />
        <tiles:useAttribute id="myAttribute" name="myAttribute" scope="request"
className="java.lang.String" />
        <tiles:put name="myAttribute" beanName="myBean" beanProperty="myAttribute"
/>

Questions:
        1) The bean and attribute are in different scopes. Can one set tile
attributes from session scope?
        2) Is there a faster way to assign an attribute at the time of
initialization in <useAttribute> tag so we do not need <jsp:useBean> and
<tiles:put> tags?
        3) Assuming myAttribute is a nested level of myBean ( i.e.
getMyBean().getMyLevel2().getMyAttribute() ), is there an EL way similar to
JSTL?

Thanks?


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

Reply via email to