我正在使用 Spring Security 3.1.2。
当用户名包含点时,代码如下:
<sec:authentication property="principal.username"/>
当用户名是user.name
时,返回值user'name
。
似乎是 ISO 8859-1 字符集表示法。
有什么方法可以使用javascript将其转换为通常的表示法吗?
感谢您的帮助!
最佳答案
要使用的属性是“htmlEscape”。例如:
<sec:authentication property="principal.username" htmlEscape="false" />
关于javascript - Spring 安全: dot in username on jsp page,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12308296/