You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Rouven Gehm <r....@teckpro.de> on 2003/12/10 14:03:33 UTC

Problems with Tomcat and nested:iterate + jsp:include

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 :

---

<%@page 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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Solved: Re: Problems with Tomcat and nested:iterate + jsp:include

Posted by Rouven Gehm <r....@teckpro.de>.
Thanx a lot,

i have updated to the Struts 1.1 "final" version, i was first afraid to exchange it
in WSAD cause WSAD causes sometimes very weird bugs.
And now my application also works with Tomcat ;-)

Rouven



----- Original Message ----- 
From: "Arron Bates" <st...@keyboardmonkey.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Thursday, December 11, 2003 4:57 PM
Subject: RE: Problems with Tomcat and nested:iterate + jsp:include


> 
> 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.


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: Problems with Tomcat and nested:iterate + jsp:include

Posted by Arron Bates <st...@keyboardmonkey.com>.
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:r.gehm@teckpro.de]
> > 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" <st...@keyboardmonkey.com>
> > To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> > 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 :
> > > >
> > > > ---
> > > >
> > > > <%@page 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: struts-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > >
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: Problems with Tomcat and nested:iterate + jsp:include

Posted by Lucas <de...@verizon.net>.
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:r.gehm@teckpro.de]
> 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" <st...@keyboardmonkey.com>
> To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> 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 :
> > >
> > > ---
> > >
> > > <%@page 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: struts-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Problems with Tomcat and nested:iterate + jsp:include

Posted by Rouven Gehm <r....@teckpro.de>.
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" <st...@keyboardmonkey.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
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 :
> > 
> > ---
> > 
> > <%@page 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: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Problems with Tomcat and nested:iterate + jsp:include

Posted by Arron Bates <st...@keyboardmonkey.com>.
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 :
> 
> ---
> 
> <%@page 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: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org