【发布时间】:2015-06-21 01:01:57
【问题描述】:
所以我在web.xml中设置了以下参数:
<context-param>
<param-name>defaultHtmlEscape</param-name>
<param-value>true</param-value>
</context-param>
这是否会通过仅在 JSP 中声明来自动转义字段的输出:
<input type="text" class="form-control" id="label" name="label" value="${field.label}">
还是我需要使用<spring:?还是使用<form: 标签?
更新:
这个问题只是是/否的问题。也许是关于如何在 JSP 端激活参数的简短答案。我的问题是在我在web.xml 中设置参数之后。那么我需要在 JSP 中使用<spring: 或<form: 标签还是可以使用普通的<input type... 标签?
【问题讨论】:
-
@RomanC 不是。我的问题是在我在
web.xml中设置参数之后。那么我需要在 JSP 中使用<spring:或<form:标签还是可以使用普通的<input type...标签?
标签: spring jsp spring-mvc spring-security jstl