what is the difference between

putAttribute and setTemplateAttribute?

Thanks

On Fri, Sep 9, 2011 at 1:53 PM, Antonio Petrelli <[email protected]
> wrote:

> 2011/9/9 Muneer Malik <[email protected]>
>
>> ok - thanks
>>
>> I had to extend the ServletDispatcherResult and everything seems to be
>> working including the MutableTiles Container
>>
>> now for the below code:
>>
>>
>> MutableTilesContainer container = TilesAccess.getContainer(
>>         request.getSession().getServletContext());
>> Definition definition = new Definition();
>> definition.setTemplate("/layouts/my_layout.jsp");
>> definition.putAttribute("body", new Attribute("/tiles/body.jsp");
>> container.register(definition, request, response);
>>
>>
>> do I need the container.render as well,since I get a blank page for the 
>> above?
>>
>>
> You forgot to call "setName" with the name of the definition, after that,
> since you are using a Tiles result in Struts, be sure that the Tiles result
> has the same name as the definition you have set.
>
>
>
>> Also Can a MutabletilesContainer and
>>
>>
>> TilesContainer container = TilesAccess.getContainer(servletContext);
>>
>>
>> reside together?
>>
>>
> A MutableTilesContainer is a TilesContainer.
>
> Antonio
>



-- 
Confidentiality Notice
-------------------------------


THIS INFORMATION IS INTENDED ONLY FOR THE USE OF THE ADDRESSEE AND MAY
CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM
DISCLOSURE UNDER APPLICABLE LAW.  IF YOU ARE NOT THE INTENDED RECIPIENT, OR
THE EMPLOYEE OR AGENT RESPONSIBLE FOR DELIVERING THIS MESSAGE TO THE
INTENDED RECIPIENT, YOU ARE HEREBY NOTIFIED THAT ANY DISSEMINATION,
DISTRIBUTION OR COPYING OF THE COMMUNICATION IS STRICTLY PROHIBITED.  IF YOU
HAVE RECEIVED THIS COMMUNICATION IN ERROR, PLEASE NOTIFY IMMEDIATELY AT
[email protected] OR BY TELEPHONE AT 817-458-1764.


THANK YOU.

Reply via email to