当我尝试写这样的东西时:<html:text styleId="Istituto" type="number">
在 struts1 中它给了我一个错误
Attribute type invalid for tag text according to TLD
如何将“类型”属性添加到 <html:text>
标签?
最佳答案
我知道这是旧的,但我目前正在开发一个使用 Struts 1 框架的超旧应用程序,今天我遇到了同样的问题。这是我正在使用的有效解决方案:
<input type="number" name="budgetValue"
value="<bean:write name="applicantForm" property="budgetValue"/>">
地点: budgetValue - 是 Form 属性; applicantForm - 是表格
关于jsp-tags - 如何在 <html :text> in struts1 中传递 "type"属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34490571/