Tomcat had its JSP engine (Jasper) rewritten for version 4.1.x and is
naturally a part of 5.x. It was a completely different beast, and the way the
nested tags operated, well, they stopped working for new tomcats. I couldn't
get them to change Jasper, so I rewrote the nested tags. This change only went
into Struts at 1.1RC2. It was late, but I couldn't have the latest tomcat not
working with the 1.1 release sooooo...


As a work around for you... try downloading this jar...

  http://keyboardmonkey.com/downloads/km-nested-v2.03.jar

...this is a jar of just the nested tags. put it into your WEB-INF/lib dir. It
should load the tags from here before it finds them in the struts.jar. When
there restart your app and see if it works.

If it works, it means your Struts is outdated, and I recommend finding an
upgrade. This jar should work fine, but there are some minor bugs that have
been fixed in the latest Struts builds.

And that's the state of affairs. See if it works for ya.


Arron.



> I had experience something like this before... 
> 
> Try check out bug ID # 4724356 in Java Bug Parade.
> 
> http://developer.java.sun.com/developer/bugParade/bugs/4724356.html
> 
> I'm not sure if this is related but it sounds like it. May be Resin 
> & WSAD parse JSP differently.
> 
> Lucas
> 
> > -----Original Message-----
> > From: Rouven Gehm [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, December 11, 2003 12:18 AM
> > To: Struts Users Mailing List
> > Subject: Re: Problems with Tomcat and nested:iterate + jsp:include
> > 
> > Well the WSAD build in version, which is 1.1beta2.
> > 
> > But is it a Struts problem, cause why does it work with Resin & WSAD,
> > but not with Tomcat ???
> > 
> > Thanx
> > 
> > Rouven
> > 
> > ----- Original Message -----
> > From: "Arron Bates" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Thursday, December 11, 2003 3:34 AM
> > Subject: Re: Problems with Tomcat and nested:iterate + jsp:include
> > 
> > 
> > > Rouven,
> > >
> > > What Struts version are you running?
> > >
> > >
> > > Arron.
> > >
> > >
> > >
> > >
> > > > Hi there,
> > > >
> > > > hope someone has a clue, why this doesn't work with Tomcat, but
> > > > works with Resin :
> > > >
> > > > I have a tile, where i want to show a treelike menu based on the
> > > > monkey example for the struts-nested taglibs, see my code at the
> > > > bottom. On the Resin and WSAD server, the tree is shown correctly,
> > > > but with tomcat (4.1.? & 5.0.?), only the first children of each
> > > > node is shown, and i don't know why, i assume that somehow tomcat
> > > > only includes the treenode.jsp once, like on PHP where i can you
> > > > have include & include_once. But where can i change this behavior of
> > > > Tomcat ???
> > > >
> > > > Thanx in advance
> > > >
> > > > Rouven
> > > >
> > > > ----
> > > > submenu.jsp :
> > > > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> > > >
> > > > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> > > >
> > > > <%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
> > > >
> > > > <nested:form action="/treechange.do">
> > > >
> > > > <nested:nest property="rootNode" >
> > > >
> > > > <jsp:include page="treenode.jsp" />
> > > >
> > > > </nested:nest>
> > > >
> > > > </nested:form>
> > > >
> > > > ---
> > > >
> > > > treenode.jsp :
> > > >
> > > > ---
> > > >
> > > > <[EMAIL PROTECTED] contentType="text/html"%>
> > > >
> > > > <%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
> > > >
> > > > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> > > >
> > > > <%-- monkey magic goes here --%>
> > > >
> > > > <nested:root>
> > > >
> > > > <img src="<%=request.getContextPath()%>/pix/spacer.gif"
> > > > width="<nested:write property="nodeIndent" />" height="1">
> > > >
> > > > <nested:equal property="showChildren" value="true">
> > > >
> > > > <nested:notEqual property="level" value="0">
> > > >
> > > > <nested:image src="pix/km_minus.gif" property="toggle" />
> > > >
> > > > <nested:equal property="active" value="true">
> > > >
> > > > <nested:link styleClass="active" page="/goneu.do" paramId="method"
> > > paramProperty="method">
> > > >
> > > > <nested:write filter="false" property="nodeName" />
> > > >
> > > > </nested:link>
> > > >
> > > > </nested:equal>
> > > >
> > > > <nested:equal property="active" value="false">
> > > >
> > > > <nested:link styleClass="notactive" page="/goneu.do"
> > > > paramId="method" paramProperty="method">
> > > >
> > > > <nested:write filter="false" property="nodeName" />
> > > >
> > > > </nested:link>
> > > >
> > > > </nested:equal>
> > > >
> > > > </nested:notEqual>
> > > >
> > > > <br>
> > > >
> > > > <nested:iterate property="children">
> > > >
> > > > <jsp:include page="treenode.jsp" />
> > > >
> > > > </nested:iterate>
> > > >
> > > > </nested:equal>
> > > >
> > > > <nested:equal property="showChildren" value="false">
> > > >
> > > > <nested:equal property="hasChildren" value="true">
> > > >
> > > > <nested:image src="pix/km_plus.gif" property="toggle" />
> > > >
> > > > </nested:equal>
> > > >
> > > > <nested:equal property="hasChildren" value="false">
> > > >
> > > > <img src="<%=request.getContextPath()%>/pix/km_empty.gif">
> > > >
> > > > </nested:equal>
> > > >
> > > > <nested:equal property="active" value="true">
> > > >
> > > > <nested:link styleClass="active" page="/goneu.do" paramId="method"
> > > paramProperty="method">
> > > >
> > > > <nested:write filter="false" property="nodeName" />
> > > >
> > > > </nested:link>
> > > >
> > > > </nested:equal>
> > > >
> > > > <nested:equal property="active" value="false">
> > > >
> > > > <nested:link styleClass="notactive" page="/goneu.do"
> > > > paramId="method" paramProperty="method">
> > > >
> > > > <nested:write filter="false" property="nodeName" />
> > > >
> > > > </nested:link>
> > > >
> > > > </nested:equal>
> > > >
> > > > <br>
> > > >
> > > > </nested:equal>
> > > >
> > > > </nested:root>
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to