<div id="siteMeshJavaScript">
<script>
$(function() {
alert("Starting");
});
</script>
</div>
</body>
in decorator file:
<sitemesh:write property='body'/>
<script src="jquery/1.11.1/jquery.min.js"></script>
<sitemesh:write property='div.siteMeshJavaScript'/>
it works, The problem is:
the original div content in html file is not cleaned,
and there are two same script in result html, and the first one would failure because jquery hadn't loaded.
sorry for my poor english, i hope you can see ......
If I do something wrong, please tell me.
If it's a real problem, can you please tell me how to fix it.
Thanks.