File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes File 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 "File "/WEB-INF/struts-logic.tld" not found" Watch "File "/WEB-INF/struts-logic.tld" not found" New topic
Author

File "/WEB-INF/struts-logic.tld" not found

rick collette
Ranch Hand

Joined: Mar 22, 2002
Posts: 208
Hi, guys:

I got the following exception when I try to runa simple jsp page:
org.apache.jasper.JasperException: File "/WEB-INF/struts-logic.tld" not found
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:105)
............


the following is my jsp page:

<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<logic:redirect page="/do/goToInitialPage"/>

taglibs specified in web.xml:

......
<taglib>
<taglib-uri>struts/bean</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>struts/html</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>struts/logic</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>
.........
struts-logic.tld is in WEN-INF folder

I double-checked everything many times, still cannot find out what is the
cause of this exception. I also unpacked war file in tomcat/webapps dir, and found struts-logic.tld is packed inside.

Anther thing is war file is never unpacked automatically when tomcat starts running. Is it because of the above exception?

regards,
Dee Gee
Greenhorn

Joined: May 10, 2006
Posts: 10
Hi

I am now facing the same problem.
If you got the soln for this can you please share it with me.

Thank You
DG
Lavanya ch
Ranch Hand

Joined: Dec 16, 2004
Posts: 75
URI is a logical name given to tag-lib location. In JSP , URI is used but not the tag-lib location.

In ur JSP, ur trying to access URI - "/WEB-INF/struts-logic.tld", which is not defined in web.xml.
In web.xml URI defined as struts/logic.

Try changing web.xml
<taglib>
<taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>

or modify ur JSP

<%@ taglib uri="struts/logic" prefix="logic" %>

Either of them would do.
 
 
subject: File "/WEB-INF/struts-logic.tld" not found
 
Similar Threads
"WEB-INF/lib/struts-html.tld" not Found
File not found error
missing struts*.tld files
why my application can't detect struts tld files ?
Do Not Understand "/tags/struts-logic" Not Found