aspose file tools*
The moose likes Struts and the fly likes Struts 1.3.5 Tiles Issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 1.3.5 Tiles Issue" Watch "Struts 1.3.5 Tiles Issue" New topic
Author

Struts 1.3.5 Tiles Issue

Prodyut Ghosh
Greenhorn

Joined: Mar 28, 2007
Posts: 3
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

Joined: Feb 15, 2005
Posts: 4864
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 ]

Merrill
Consultant, Sima Solutions
Prodyut Ghosh
Greenhorn

Joined: Mar 28, 2007
Posts: 3
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

Joined: Feb 15, 2005
Posts: 4864
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

Joined: Mar 28, 2007
Posts: 3
Merrill,

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

It works!

Thanks

Prodyut
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 1.3.5 Tiles Issue
 
Similar Threads
tld files for struts 1.3.5
error in struts-html.tld file
Why: File "/WEB-INF/struts-html.tld" not found.
Getting error while invoking JSP page having Tag Libraries on Websphere Application Server 6.1
Are these tags OK to have with no Internet Connection?