• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

why my application can't detect struts tld files ?

 
Ranch Hand
Posts: 472
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi, good day, i having a problem to detect struts-bean.tld, struts-html and son on for my struts application, i have done few steps as below :

1. put all tld files into WEB-INF\tld folder
2. web.xml added part for tld file


3.put taglib into jsp <%@ taglib uri="/tags/struts-logic" prefix="logic" %>


when i run the jsp file, it give "org.apache.jasper.JasperException: File "/tags/struts-logic" not found" error in log ,

is there anyone know why my application can't detect the uri ?
i finally figure by replace <%@ taglib uri="/tags/struts-logic" prefix="logic" %> into <%@ taglib uri=">/WEB-INF/tld/struts-logic.tld" prefix="logic" %>

but what i need is to detect the uri "/tags/struts-logic" ..anyone have idea on this ?

for your information, i have change the doctype header to "
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">"

would it cause this problem ?

i'm running tomcat 5.59 and thanks for your guidance
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since you are using the Servlet 2.4 spec in your applicaiton, you must enclose your <taglib> declaration in a <jsp-config></jsp-config> tag set.
 
Nakata kokuyo
Ranch Hand
Posts: 472
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks for pointing out the error , Merrill Higginson , it work
 
reply
    Bookmark Topic Watch Topic
  • New Topic