Tiles definition:

<tiles-definitions>

    <definition name="/commonPage" template="/jsp/common/template.jsp">
        <put-attribute name="header" value="/jsp/common/defaultHeader.jsp" />
        <put-attribute name="menu" value="/jsp/common/defaultMenu.jsp" />
        <put-attribute name="footer" value="/jsp/common/defaultFooter.jsp" />
    </definition>


    <definition name="/home" extends="/commonPage">
        <put-attribute name="body" value="/jsp/home_body.jsp" />
    </definition>

    <definition name="/user" extends="/commonPage">
        <put-attribute name="body" value="/jsp/user_body.jsp" />
    </definition>

</tiles-definitions>

The house.jsp:

<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<tiles:insertDefinition name="/home" />

It really works,nevertheless I wish to then add js connect to the all.jsp as opposed to the template.jsp.

That's to express,how you can add the js refer(something similar to :<script type="text/javascript" src="xx.js"></script>) towards the all.jsp?