应该在JSP文件的开头添加以<%@开头的行,以便能够使用该标记.
我在jsp的开头添加了以下行.
<%@ taglib prefix ="html"uri ="http://struts.apache.org/tags-html"%>
但Eclipse IDE说
在Java Build Path中找不到 "html:link"(org.apache.struts.taglib.html.LinkTag)的标记处理程序类
在< html:link >标记旁边.
这有什么不对?
我想要做的是 - 通过struts actionmapping 从homepage.jsp加载page1.jsp.
如果你已经下载了完整的struts jar,你就不需要声明你的taglib了web.xml.
<zipped file>\struts-1.3.10\lib到您的WEB-INF\lib文件夹中(在您的项目中).例:
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
Run Code Online (Sandbox Code Playgroud)
有关Struts 1.x安装指南的更多信息.
| 归档时间: |
|
| 查看次数: |
11206 次 |
| 最近记录: |