Ola galera
Crieu uma custom tag e até entao tava funcionando normalmente dentro do tomcat, mas quando eu faço deploy da aplicacao no jboss a custom tag nao funciona.
Alguem pode me ajudar, desde já muito obrigado.
Seguem abaixo fonte da custom tag
WEB-INF\support.tld
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>support</shortname>
<info>taglib for support of the application </info>
<tag>
<name>path</name>
<tagclass>br.com.verano.view.customTag.TagPath</tagclass>
<bodycontent>empty</bodycontent>
<info>This is resolve the path of application</info>
</tag>
</taglib>
TagPath.java
public void doTag() throws JspException, IOException {
PageContext context = (PageContext)getJspContext();
Properties resource = new Util().readResource();
String path = resource.getProperty("DOMAIN");
context.getOut().write(path);
}
exemplo de uso no jsp
<!-- MY TAG LIB -->
<%@ taglib uri="/WEB-INF/support.tld" prefix="s" %>
.... background="<s:path/>/images/themes/trama_large.gif" ...
) Dê uma olhada qual a versão do Tomcat que roda dentro do seu Jboss, provavelmente há alguma diferença entre as duas versões( o que implica em versões diferentes de especificação pra Servlet, Jsp, Tag lib’s…)…