使用spring.fremarker模板中的formInput时出错
我正在尝试使用,
<@spring.formInput "searchForm.frm_surName"
maxlength=40
class='form-control form-control-sm'
placeholder="Last Name"
/>
但是当我在标签启动时使用'@'时,它会给我错误,当我删除它并且没有错误时,它会接受。 另外,CSS不起作用,例如占位符不显示输出,输入框仅显示,但使用不活跃。 任何建议。 不活动输入框图像
I am trying to use
<@spring.formInput "searchForm.frm_surName"
maxlength=40
class='form-control form-control-sm'
placeholder="Last Name"
/>
but it gives me error when I use '@' in starting of the tag, it accepts when I remove it and no error.
Also the CSS does not work for example the placeholder does not show in output and input box just shows up but is not active to use.
Any suggestions.
Inactive input box image
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要使用弹簧输入和绑定,我们必须为freemarker导入spring.ftl文件。速度框架不需要这种导入,但是freemarker确实需要。因此,只需使用下面的代码导入文件。
To use spring inputs and bindings we have to import spring.ftl file for freemarker. Velocity framework does not need such import but freemarker does. So just import the file by using code below.