在jsp中 使用${pageContext.request.contextPath}可以取到项目名称
在freemarker中如何弄呢?
[code="java"]<#assign contextPath = request.contextPath/>[/code]
有什么错,我现在都是这么用的。