Bom dia amigos, sou iniciandte em java e acabei de me defrontar com um erro :
Tipo carreguei o projeto, na parte de Java funciona que é uma beleza, porem na parte de JSP linhas como essa “<logic:messagesPresent message=“true”>”
me mostra o seguinte erro:
taglib directive for “html” does not exist or TLD is not found.
Eu estava trabalhando normalmente com a aplicão dai depois de uma alteração eu coloquei o backup e ele começou a gerar esse erro.
Se alguem puder me ajudar eu agradeço.
vc ta usando servlet 2.3 ou 2.4? Coloque o seu web.xml aqui para vermos. Ah, essa taglib eh do struts, certo? Os arquivos .tld estao no seu WEB-INF/lib ?
Então, estou usando a versão 2.4 é do struts sim, esses arquivos estão em WEB-INF\tld
segue abaixo meu xml :
- <jsp-config>
- <taglib>
<taglib-uri>/tags/struts-bean</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-bean.tld</taglib-location>
</taglib>
- <taglib>
<taglib-uri>/tags/struts-html</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-html.tld</taglib-location>
</taglib>
- <taglib>
<taglib-uri>/tags/struts-logic</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-logic.tld</taglib-location>
</taglib>
- <taglib>
<taglib-uri>/tags/struts-nested</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-nested.tld</taglib-location>
</taglib>
- <taglib>
<taglib-uri>/tags/struts-tiles</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-tiles.tld</taglib-location>
</taglib>
- <taglib>
<taglib-uri>/tags/displaytag</taglib-uri>
<taglib-location>/WEB-INF/tld/displaytag-12.tld</taglib-location>
</taglib>
</jsp-config>
</web-app>