2008/3/31, Pedro Herrera <[EMAIL PROTECTED]>:
> How I use dojo tags, I have to put in the head for a specific page:
> <script type="text/javascript">
> dojo.require("dojo.parser");
> dojo.require("dijit.form.ComboBox");
> </script>
>
> My problem is that each page(jsp) has differents dojo.requires(need inside
> head tags). How do I resolve this, ie, each page has a specific head ?
You could use a list attribute, containing the needed Dojo
requirement, and iterate in the JSP page:
http://tiles.apache.org/tutorial/advanced/list-attributes.html
In your case it could be:
<script type="text/javascript">
<c:forEach var="item" items="${list}">
dojo.require("${item.value}");
</c:forEach>
</script>
HTH
Antonio