jsp-tags - 如何在 <html :text> in struts1 中传递 "type"属性

标签 jsp-tags struts-1

当我尝试写这样的东西时:<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/

相关文章:

java - 需要有关在网络上显示(和/或转换)pdf 文件的建议

struts-1 - 在Struts 1中,<action>标签的Type属性的默认值是多少?

java - 如何将表单输入值传递给 Action (struts 1)

java - 你可以使 id 动态 - <div id=[此处动态字段]

java - ModelAndView 不将模型返回到 spring mvc 中的 JSP

java - 如何在 JSP 中换行打印

java - 将 Java 对象从一个 Struts 操作传递到另一个

java - 如何在 struts 1 html 标签库中添加额外的 html 属性?

java - 使用 JavaScript 更改 JSP 自定义标记的 JSP 自定义属性值

Spring-Security 3.1 java.lang.ClassNotFoundException : org. springframework.security.taglibs.authz.AuthorizeTag