freemarker 怎么引用jsp自定义标签
1个回答
展开全部
struts-cleanup org.apache.struts2.dispatcher.ActionContextCleanUp sitemesh-freemarker org.apache.struts2.sitemesh.FreeMarkerPageFilter default_encoding UTF-8 struts2 org.apache.struts2.dispatcher.FilterDispatcher struts-cleanup /* sitemesh-freemarker /* struts2 /* JspSupportServlet org.apache.struts2.views.JspSupportServlet 1 struts-cleanup org.apache.struts2.dispatcher.ActionContextCleanUp sitemesh-freemarker org.apache.struts2.sitemesh.FreeMarkerPageFilter default_encoding UTF-8 struts2 org.apache.struts2.dispatcher.FilterDispatcher struts-cleanup /* sitemesh-freemarker /* struts2 /* JspSupportServlet org.apache.struts2.views.JspSupportServlet 1 本文的重点是如何在JSP中使用FreeMarker标签,有人可能会问:为什么不直接在FreeMarker模版文件中使用JSP标签呢? Login Hello World. ${y} ${x_index + 1}. ${x}, Login Hello World. ${y} ${x_index + 1}. ${x}, 大家注意了FreeMarker的部分必须放在标签与之间,否则JSP不会解析FreeMarker的内容,会把源码输出在页面之中
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询