tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Funk <funk...@joedog.org>
Subject Re: Recursive Tagfile and JSP Precompilation
Date Fri, 02 Dec 2005 11:56:11 GMT
Please create a working (simple) war file which reproduces the error and 
submit it to Bugzilla.

-Tim

Peter L wrote:

> Thanks Tim but it doesn't appear to be entirely resolved...
> 
> Long story short:
> - Tried to precompile using the jbossweb-tomcat55.sar from jboss-4.0.3
> - Same problem (I think its Tomcat-5.5.12)
> - Upgraded jars to Tomcat-5.5.13
> - Got an error during compilation of actual tag file (instead of the
> client JSP):
> C:\dev\J2EE\libraryserver\build.xml:819: org.apache.jasper.JasperException:
> /WEB-INF/tags/jspTags/displayValue.tag(27,88)
> Unable to load tag handler class
> "org.apache.taglibs.standard.tag.rt.core.SetTag" for tag "c:set"
> 
>  - Discovered a workaround and have reverted back to native
> jbossweb-tomcat50.sar
> 
> 
> Here is the workaround:
>  - Need to 'snip' the compile time tracing of recursion by the use of
> <jsp:include>
>  - Create a JSP file that simply calls the tag using parameters
> supplied in request attribs
>  - 'include' this JSP instead of performing a recursive call in the tag file
>  - BEWARE CAVEAT: relative paths don't work inside a tagfile
> 
> Example JSP:
> <%@page errorPage="/error.jsp"
>   %><%@ taglib tagdir="/WEB-INF/tags/jspTags" prefix="slk"
>   %><slk:displayValue value="${requestScope.recurseParamMap.value}"
>                       property="${requestScope.recurseParamMap.property}"
>                      
> defaultValue="${requestScope.recurseParamMap.defaultValue}"/>
> 
> Example Tagfile snippet:
> <%java.util.Map recurseParamMap = new java.util.HashMap();
> recurseParamMap.put("value", SOME_OBJECT);
> request.setAttribute("recurseParamMap", recurseParamMap);
> %><jsp:include page="/WEB-INF/tags/jspTags/recursion/displayValue.jsp"/>
> 
> Cheers,
> Pete
> 
> On 12/1/05, Tim Funk <funkman@joedog.org> wrote:
> 
>>IIRC - this is fixed in 5.5. I'm not sure if it was fixed with 5.5.12 - but
>>5.5.13 was just tagged and should be available soon. BUT it hasn't been voted
>>how stable it is yet. (beta, alpha, stable)
>>
>>-Tim
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message