does freemarker support show all variable in data-model?
问题 I want to see all variables in freemarker data-model, just like struts2 debug tag to show value stack. Is there a way for freemarker to do this ? 回答1: There's no universal solution possible for that, but you can try <#list .data_model?keys as key> ${key} </#list> This works if the data-model is just a usual Map or JavaBean, but for more sophisticated data-models it's up to the data-model implementation if it supports ?keys and if it indeed returns everything. You also have the variables that