我在一个JSP文件上使用了prototypejs模板。但是jsp文件试图解析prototypejs模板的#{}标签,因此它失败了。
我怎么能让jsp不解析它们呢。换句话说,我如何才能转义这些标签?
谢谢。
发布于 2012-12-07 18:51:53
JSP:var template = new Template('<a href="\#{href}" title="\#{title}">\#{name}</a>');
var template = new Template('<a href="#{href}" title="#{title}">#{name}</a>');
\文件。
\代码中,并使用EL ${}、JSTL <c:out />或Stuts JSP在JSP上编写代码https://stackoverflow.com/questions/13717454
复制相似问题