tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acec acec <tomcata...@yahoo.ca>
Subject "best practice" for tiles with css and javascript
Date Wed, 08 Dec 2010 21:56:11 GMT
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 name="homeLayout" extends="defaultLayout">
<put-attribute name="body" value="/WEB-INF/jsp/template/body/home.jsp"/>

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

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

Thanks a lot.

View raw message