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

2003-12-12 Thread Rouven Gehm
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 [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
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 so...
 
 
 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

2003-12-11 Thread Rouven Gehm
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]



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

2003-12-11 Thread Lucas
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]



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

2003-12-11 Thread Christine Kudlac
This was a known bug when usning the nested:iterate with an pre-final 
release of Struts 1.1.  
(http://issues.apache.org/bugzilla/show_bug.cgi?id=17977)  As with your 
example, the 1.1 beta 2 worked perfectly when running on WebLogic 6.1 sp 3 
and later.  However, it would fail on Tomcat 4.1X.  I upgraded to the Struts 
1.1 final release and this error was corrected.

However, it sounds as though you might want to take a look at another 
reported bug since you are using tiles and the nested tags.  
http://issues.apache.org/bugzilla/show_bug.cgi?id=20854

Hope this helps!

Christine


From: Lucas [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: Problems with Tomcat and nested:iterate + jsp:include
Date: Thu, 11 Dec 2003 01:03:19 -1000
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

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

2003-12-11 Thread Arron Bates

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


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

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

2003-12-11 Thread Arron Bates
Yeah!, what she said!  :)


Arron.


PS: Christine, thanks for forcing me to go bug hopping in #17977. Terribly
kind of you to re-open the bug.  You know, I wouldn't mind if you fixed it
yourself and just gave me the patch :P




 This was a known bug when usning the nested:iterate with an pre-
 final release of Struts 1.1.  
 (http://issues.apache.org/bugzilla/show_bug.cgi?id=17977)  As with 
 your example, the 1.1 beta 2 worked perfectly when running on 
 WebLogic 6.1 sp 3 and later.  However, it would fail on Tomcat 4.1X. 
  I upgraded to the Struts 
 1.1 final release and this error was corrected.
 
 However, it sounds as though you might want to take a look at 
 another reported bug since you are using tiles and the nested tags.  
 http://issues.apache.org/bugzilla/show_bug.cgi?id=20854
 
 Hope this helps!
 
 Christine
 
 From: Lucas [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Subject: RE: Problems with Tomcat and nested:iterate + jsp:include
 Date: Thu, 11 Dec 2003 01:03:19 -1000
 
 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

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

2003-12-11 Thread Christine Kudlac
Arron,

You are welcome for my re-opening the bug.  I thought about fixing it, but 
thought it would be a nice Christmas present for you.  ;)  I look forward to 
these issues being resolved and am willing to help if needed.

Christine



From: Arron Bates [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: Problems with Tomcat and nested:iterate + jsp:include
Date: Fri, 12 Dec 2003 02:07:54 +1000
Yeah!, what she said!  :)

Arron.

PS: Christine, thanks for forcing me to go bug hopping in #17977. Terribly
kind of you to re-open the bug.  You know, I wouldn't mind if you fixed it
yourself and just gave me the patch :P


 This was a known bug when usning the nested:iterate with an pre-
 final release of Struts 1.1.
 (http://issues.apache.org/bugzilla/show_bug.cgi?id=17977)  As with
 your example, the 1.1 beta 2 worked perfectly when running on
 WebLogic 6.1 sp 3 and later.  However, it would fail on Tomcat 4.1X.
  I upgraded to the Struts
 1.1 final release and this error was corrected.

 However, it sounds as though you might want to take a look at
 another reported bug since you are using tiles and the nested tags.
 http://issues.apache.org/bugzilla/show_bug.cgi?id=20854

 Hope this helps!

 Christine

 From: Lucas [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Subject: RE: Problems with Tomcat and nested:iterate + jsp:include
 Date: Thu, 11 Dec 2003 01:03:19 -1000
 
 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

Problems with Tomcat and nested:iterate + jsp:include

2003-12-10 Thread Rouven Gehm
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]



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

2003-12-10 Thread Arron Bates
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]