【问题标题】:Using <s:combobox> in Struts 1在 Struts 1 中使用 <s:combobox>
【发布时间】:2009-09-07 11:23:07
【问题描述】:

我正在使用 Struts 1.我有一个标签库

<%@ taglib prefix="s" uri="/WEB-INF/struts-tags.tld" %>

这个标签库只在 Struts 2.0 框架中工作。它有一个标签,我在我的应用程序中使用过。现在当我不得不回溯到 Struts 1 时出现错误

无法解析部署描述符: java.io.IOException:无法解析 '/WEB-INF/struts-tags.tld' 变成一个 可能出现了有效的标签库 由于错误

谁能建议如何在struts 1中使用

【问题讨论】:

    标签: combobox struts taglib


    【解决方案1】:
    <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
    

    然后使用 html:select 和 official documentation 中解释的适当属性。

    <html:select property="...">
    ...
    </html:select>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-02-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多