【发布时间】:2013-02-25 13:33:28
【问题描述】:
我在我的 jsp 中使用了 Spring 表单标签。
<form:form modelAttribute="myAttribute" method="POST"
action="/doSomething" >
<form:input path="name" type="text" value="" />
.
.
现在我的 modelAttribute 已经包含“name”的值,因此我得到一个文本框,其中已经指定了值。
但我不想向用户展示这种价值。我希望用户在文本框中输入一个新值。
如何隐藏绑定值,使其不显示在文本框中? 请指导。
【问题讨论】:
标签: java html spring spring-mvc jsp-tags