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

Release 1.1 and Bug #17977

2003-11-26 Thread Christine Kudlac
All,

When using the latest struts.jar, I am experiencing the error as described 
in defect #17977 (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17977).  
The log shows that this has been resolved, but I am unable to correct the 
problem.  I ran the identical code for over a year on the 1.1 Beta 2 jar and 
never received this error.  Only when upgrading to the latest stable 1.1 jar 
did I begin seeing this error.  Is there a patch available to resolve this?

Thanks for your help!

Christy K.

_
From the hottest toys to tips on keeping fit this winter, you’ll find a 
range of helpful holiday info here.  
http://special.msn.com/network/happyholidays.armx

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