如何在 struts1 中的 <html:text> 中传递“type”属性

EA0*_*906 2 jsp-tags struts-1

当我尝试写这样的东西时:<html:text styleId="Istituto" type="number">在 struts1 中,它给了我一个错误

根据 TLD,标签文本的属性类型无效

如何将“类型”属性添加到<html:text>标签?

Mil*_*bza 5

我知道这是旧的,但我目前正在开发一个使用 Struts 1 框架的超旧应用程序,今天我遇到了同样的问题。这是我正在使用的解决方案:

<input type="number" name="budgetValue" 
 value="<bean:write name="applicantForm" property="budgetValue"/>">
Run Code Online (Sandbox Code Playgroud)

其中:budgetValue - 是 Form 属性;申请人表格 - 是表格