Hi,
I am a new user of tiles.

It seems tiles can put jsp together easily. Do we have any best practice 
example to handle css files and javascript files?

For example, I can create a "defaultLayout", which includes a heard and foot.

<definition name="defaultLayout" 
template="/WEB-INF/jsp/template/layout/default.jsp">
<put-attribute name="header" value="/WEB-INF/jsp/template/component/header.jsp" 
/>
<put-attribute name="footer" value="/WEB-INF/jsp/template/component/footer.jsp" 
/>
</definition>

<definition name="homeLayout" extends="defaultLayout">
<put-attribute name="body" value="/WEB-INF/jsp/template/body/home.jsp"/>
</definition>

<definition name="aboutLayout" extends="defaultLayout">
<put-attribute name="body" value="/WEB-INF/jsp/template/body/about.jsp"/>
</definition>

My homeLayout and  aboutLayout will use different css files and javascript 
files, how can I put those files together?

Thanks a lot.


Reply via email to