Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 1.3.5 Tiles Issue

 
Prodyut Ghosh
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can any one help on Tiles issue, I am using struts 1.3.5,
1. All the jar file are place
2. In JSP pages I have:
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>

3.Web.xml file: I don't have any more: following lines

<taglib>
<taglib-uri>http://struts.apache.org/tags-tiles</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>

Still I am having problem, error says:

org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class: org.apache.struts.taglib.tiles.UseAttributeTei
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)


Root cause: java.lang.ClassNotFoundException: org.apache.struts.taglib.tiles.UseAttributeTei

Can any one please help me what should I do?
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Remove the <taglib> stanza from your web.xml file. For one thing, it points to the wrong TLD. For another, it's unnecessary.

All you need to do to make the taglibs work is make sure that struts-taglib-1.3.5.jar and struts-tiles-1.3.5.jar are in your WEB-INF/lib directory and use the correct taglib declaration in your JSP. Struts 1.3.5 uses the newer style taglib declarations that get the TLDs from the META-INF directory inside a jar file.
[ March 28, 2007: Message edited by: Merrill Higginson ]
 
Prodyut Ghosh
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Merrill,

Thank you so much for your reply,

I have those jar file under WEB-INF/lib, I just check it.

more over, I don't have any <taglib> notation on web.xml file (at all)

and I am using

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

on JSP pages, then what could be the problem! Could you or anyone tell me!

Thanks and regards

Prodyut
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check the integrity of your Struts installation. Make sure that every jar file and every xml file came only from the Strtus 1.3.5 download, and not from anywhere else. In particular, make sure there are absolutely no TLD files anywhere except inside the Struts provided jar files. This type of error often occurs when someone tries to "mix n' match" struts artifacts from different versions.
[ March 28, 2007: Message edited by: Merrill Higginson ]
 
Prodyut Ghosh
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Merrill,

Thanks a lots. Yeah it was mis match of different jar file from differnt version.

It works!

Thanks

Prodyut
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic