wood burning stoves*
The moose likes Struts and the fly likes struts taglib issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts taglib issue" Watch "struts taglib issue" New topic
Author

struts taglib issue

Mansi Mishra
Ranch Hand

Joined: Dec 26, 2008
Posts: 50
I am trying to create a simple struts application.
I have defined the struts tiles library in my web.xml




These tlds are present in my WEB-INF folder. Also I have included the struts.jar in my project classpath.
the index.jsp only carries two lines.



Yet on running the application I get the following error.

Parsing of JSP File '/index.jsp' failed:
--------------------------------------------------------------------------------
/index.jsp(1): Could not parse deployment descriptor: java.io.IOException: cannot resolve '/WEB-INF/struts-logic.tld' into a valid tag library
probably occurred due to an error in /index.jsp line 1:
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

Please advice.

http://splashpress.blogspot.com
Mansi Mishra
Ranch Hand

Joined: Dec 26, 2008
Posts: 50
Also, I have added the jstl and standard.jar files under WEB-INF/lib directory
Mansi Mishra
Ranch Hand

Joined: Dec 26, 2008
Posts: 50
Seems like adding the taglib.tld to my web.xml did the trick.

<taglib-uri>/tlds/taglib</taglib-uri>
<taglib-location>/WEB-INF/tlds/taglib.tld</taglib-location>
</taglib>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: struts taglib issue
 
Similar Threads
Struts taglibs - references - doubt
How to user Struts Tags in a WebApplication
help on taglib and properties file in struts?
Why: File "/WEB-INF/struts-html.tld" not found.
why my application can't detect struts tld files ?