Pessoal to quebrando a cabeça a tres dias com a maldita implementação da jsp do jetty
o problema é o seguinte tenho uma biblioteca feita em tagfile que funciona mil maravilhas no tomcat dai fui trocar o servidor pro jetty e pauuuuuuuuuuuuuuuuu!!
fui ver o ponto do problema e ele acontece no seguinte ponto
body.tag
<%@ attribute name="jsCode" %>
<jsp:doBody var="bd"/>
<html>
<head>
//Essa variavel fica vazia no jetty e vem com valor no tomcat.
${jsCode}
</head>
<body>
${bd}
</body>
</html>
setParentProperty.tag
<%@ attribute name="tag" required="true" type="javax.servlet.jsp.tagext.SimpleTagSupport" %>
<%@ attribute name="property" required="true" type="java.lang.String" %>
<%@ attribute name="value" required="true" type="java.lang.String" %>
<%@ tag
import="
org.apache.commons.beanutils.BeanUtils,
javax.servlet.jsp.tagext.SimpleTagSupport,
javax.servlet.jsp.tagext.SimpleTag" %>
<%
SimpleTagSupport targetTag = (SimpleTagSupport)findAncestorWithClass(tag,SimpleTag.class);
String parentPropertyValue = (String)BeanUtils.getProperty(targetTag,property);
if (parentPropertyValue!=null) {
value = parentPropertyValue + value;
}
BeanUtils.setProperty(targetTag,property,value);
//Ambos servidores imprimem corretamente ate esse ponto
out.println("<br/> property => "+property+" = "+(String)BeanUtils.getProperty(targetTag,property));
%>
jsCode.tag
<jsp:doBody var="code"></jsp:doBody>
<util:setParentProperty tag="<%=this%>" property="jsCode" value="${code}"></util:setParentProperty>
index.jsp
<html:body>
<html:jsCode>
alert('oi');
</html:jsCode>
</html:body>
Tudo funciona bunitinho nos dois servidores mas o jetty apesar de setar a variavel jsCode na tag body ele parece que perde o valor da variavel e nao imprime nada…enquanto o tomcat imprime…alguem tem uma luz??