Problemas com Struts... File "/WEB-INF/struts-html.tld&

3 respostas
T

alguem pode me ajudar e dizer as possiveis causas desse erro?

o jsp esta dentro de WEB-INFjspprograma
o web.xml dentro de WEB-INF

<taglib> <taglib-uri>/tags/struts-html</taglib-uri> <taglib-location>/WEB-INF/struts-html.tld</taglib-location> </taglib>

mas ele da esse erro:

org.apache.jasper.JasperException: File “/WEB-INF/struts-html.tld” not found

valeupela ajuda.

3 Respostas

ricardolecheta

o struts-html.tld precisa estar em WEB-INF

T

mas ja esta dentro do web-inf

W

Os locais onde cada um desses arquivos deve ficar está no arquivo web.xml…

Abaixo estou enviando um exemplo…

<!-- Application Tag Library Descriptor -->
<taglib>
<taglib-uri>/WEB-INF/app.tld</taglib-uri>
<taglib-location>/WEB-INF/app.tld</taglib-location>
</taglib>

<!-- Struts Tag Library Descriptors -->
<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>

<taglib>
<taglib-uri>/tags/struts-nested</taglib-uri>
<taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>/tags/struts-tiles</taglib-uri>
<taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
</taglib>

tudo isso está escrito no web.xml, que fica na raiz de web-inf…

espero ter ajudado…

Criado 22 de março de 2004
Ultima resposta 8 de abr. de 2004
Respostas 3
Participantes 3