aspose file tools*
The moose likes Struts and the fly likes why my application can't detect struts tld files ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "why my application can Watch "why my application can New topic
Author

why my application can't detect struts tld files ?

Nakata kokuyo
Ranch Hand

Joined: Apr 13, 2005
Posts: 438
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
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
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.


Merrill
Consultant, Sima Solutions
Nakata kokuyo
Ranch Hand

Joined: Apr 13, 2005
Posts: 438
thanks for pointing out the error , Merrill Higginson , it work
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: why my application can't detect struts tld files ?