File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Unable to find taglib in project--please help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Unable to find taglib in project--please help" Watch "Unable to find taglib in project--please help" New topic
Author

Unable to find taglib in project--please help

Russell Ray
Ranch Hand

Joined: Apr 25, 2005
Posts: 116
I have a problem. All I am trying to do is add the following basic taglib libraries into my web.xml file. I am using eclipse 3.1 with MyEclipse workbench.


The top portion of the web.xml file says:
Code:




These *.tdl are located in the WEB-INF directory, yet I am getting this error when i try to compile the project:




Any help or suggestions would help!

Russ
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
If your Application server uses the J2EE Servlet 2.4 specificaiton, your <taglib> xml block must be enclosed in <jsp-config></jsp-config>. If it's not, that may be causing your error.


Merrill
Consultant, Sima Solutions
Vijay Rajendran
Greenhorn

Joined: Mar 30, 2006
Posts: 4
Hi Russel,
I hope there is an error in your web.xml file.. try adding jsp-config section to your document... so ur code should look like..
<jsp-config>
<taglib>
<taglib-uri>/tags/struts-bean</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-html</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>/tags/struts-logic</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>
</jsp-config>


Send me ur feed back if it works...
regards,
R Vijay
rvijaycool@yahoo.com
Vijay Rajendran
Greenhorn

Joined: Mar 30, 2006
Posts: 4
Hi Russel,
I hope there is an error in your web.xml file.. try adding jsp-config section to your document... so ur code should look like..
<jsp-config>
<taglib>
<taglib-uri>/tags/struts-bean</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-html</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>/tags/struts-logic</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>
</jsp-config>


Send me ur feed back if it works...
regards,
R Vijay
rvijaycool@yahoo.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to find taglib in project--please help