• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

struts taglib issue

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Mansi Mishra
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also, I have added the jstl and standard.jar files under WEB-INF/lib directory
 
Mansi Mishra
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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>
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic