paramList在action中给值
request.setAttribute('name=ddd');
取值结果:
= 被转成了html符号了
|
${requestAttributes.paramList} |
name=ddd |
|
${request .get Attribute (' paramList ') } |
name #61; ddd |
解决HTML特殊字符转义问题
本文探讨了在使用request.setAttribute方法传递参数时遇到的问题,即等号(=)被错误地转义成HTML特殊字符。文章展示了如何通过正确设置属性来避免这种转义现象,并提供了两种不同的代码示例来说明这一过程。
paramList在action中给值
request.setAttribute('name=ddd');
取值结果:
= 被转成了html符号了
|
${requestAttributes.paramList} |
name=ddd |
|
${request .get Attribute (' paramList ') } |
name #61; ddd |

被折叠的 条评论
为什么被折叠?