• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to find taglib in project--please help

 
Russell Ray
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Vijay Rajendran
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic