DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18343>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18343

Nested tags cannot find bean in any scope in included JSP





------- Additional Comments From [EMAIL PROTECTED]  2003-03-30 20:01 -------
I was trying out the excellent tutorial on keyboardmonkey.com and ran into a 
problem that might be related to the bug.




I was trying the recursive JSP tree-like stuff (again, excellent tutorial)




This is my JSP it is divided in two files:


==== file1 ====


<logic:present name="menu.rootfolder">


    <nested:root name="menu.rootfolder">


        <div class="menu">


            <jsp:include page="menufolder.jsp" />


        </div>


    </nested:root>


</logic:present>




==== menufolder.jsp ====


<nested:root>


  <div class="menufolder">


    <nested:write property="presentationName" />


    <%-- Handle folders --%>


      <nested:present property="folders">


        <nested:iterate property="folders">


          (<nested:write property="presentationName" />)


          <jsp:include page="menufolder.jsp" />


        </nested:iterate>


      </nested:present>


</nested:root>




The bean I am accessing in file1 - named menu.rootfolder - has an array property 
that is the collection of sub-items. My problem is that the bean from the 
<nested:iterate> doesn't seem to propagate to the recursively included page 
<jsp:include> .




This is the output from running my files




==== output ====




Rootfolder


(folder 1.1) 


  folder 1.1


(folder 1.2) 


  folder 1.1


(folder 1.3) 


  folder 1.1




As you can see the <nested:write> correctly writes out the "presentationName" 
property for the nested bean, the recursive include however seems to be stuck on 
the first bean (named 1.1).




This is on Tomcat 4.1.18 and Struts 1.1-rc1

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

Reply via email to