jsp页面struts标签引入错误!

yuanye2008 2006-02-25 05:29:53
jdk 1.5
tomcat 5.0
struts 1.2.8
jsp页面中引入标签
<%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean" %>
运行后,页面提示:
org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class: org.apache.struts.taglib.bean.CookieTei

java.lang.ClassNotFoundException: org.apache.struts.taglib.bean.CookieTei

这是什么原因造成的?

我已经引入了struts.jar,jakarta-oro.jar,commons-validator.jar,commons-logging.jar,
commons-fileupload.jar,commons-digester.jar,commons-beanutils.jar,standard.jar,
jstl.jar,commons-collections.jar!

我需要使用c.tld,fmt.tld,struts-html-el.tld等标签,
所以我引入了standard.jar,jstl.jar,不知道对不对!
请大家知道!小弟先谢了!

web.xml如下:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>index.</welcome-file>
</welcome-file-list>
<taglib>
<taglib-uri>/WEB-INF/tld/struts-bean.tld</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/tld/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/tld/struts-logic.tld</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-logic.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/tld/struts-nested.tld</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-nested.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/tld/struts-tiles.tld</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-tiles.tld</taglib-location>
</taglib>
</web-app>




...全文
507 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
doway 2006-02-26
  • 打赏
  • 举报
回复
http://struts.apache.org/struts-el/index.html
yuanye2008 2006-02-25
  • 打赏
  • 举报
回复
谢谢!
还有一个问题:
Unable to load tag handler class "org.apache.strutsel.taglib.html.ELFormTag" for tag "html-el:form"

org.apache.strutsel.taglib.html.ELFormTag
在那个jar包里!从哪可以下载?
doway 2006-02-25
  • 打赏
  • 举报
回复
>java.lang.ClassNotFoundException: org.apache.struts.taglib.bean.CookieTei

找不到相关的类定义,铁定是 Web 应用程序的 lib 目录中缺少相应的 .jar 文件。

67,513

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧