java - html 标签未在 XML 中定义或没有任何 JAR 文件错误消息

标签 java struts struts-1 taglib xml-configuration

即使我将 Struts html jar 放在 lib 中(使用 Struts 1.3 和 Tomcat 7)。

最佳答案

struts-taglib-1.3.10.jar放入web-inf/lib。该文件包含所有必需的标签库。还要确保 JSP 中有 taglib 指令。

<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>

关于java - html 标签未在 XML 中定义或没有任何 JAR 文件错误消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18942740/

相关文章:

java - 如何保存表单 bean 对象值以便稍后在 Struts 1 中检索它

java - request.getCharacterEncoding() 返回 NULL... 为什么?

java - jersey (JSR-311),如何在容器模式中实现@POST

java - 与 Websphere 服务器的 JMS 连接

java - 如何比较 arraylist 与 kotlin 中的嵌套 arraylist?

java - Struts 中的预选值 <s :select> tag?

java - 显示带有 s :iterator in Struts 2 的表

java - Struts1中的struts-config.xml文件中可以定义类方法名吗?

java - 在 onClick(View arg0) 中使用 Sleep(int ms)

java - 如何安排自动打印作业?