I have a webapp setup that uses Stripes and Freemarker; for part of it I'm also coding some GWT stuff, and I'm trying to figure out the best way of getting information from the actionBean
into GWT code. Currently I do this in the template:
<script>
var params = {
nick : "${actionBean.nick}",
logout: "${actionBean.logout}"
}
</script>
And then I do a Dictionary.getDictionary("params")
on entry into the GWT module. It works fine, but I feel like I could do better. Suggestions?