my dog learned polymorphism
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
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

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(

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:



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?

Dee Gee

Joined: May 10, 2006
Posts: 10

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

Thank You
Pallavi ch
Ranch Hand

Joined: Dec 16, 2004
Posts: 76
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

or modify ur JSP

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

Either of them would do.
I agree. Here's the link:
subject: File "/WEB-INF/struts-logic.tld" not found
It's not a secret anymore!