struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 10622] New: - Problem with nested iterate tags
Date Wed, 10 Jul 2002 01:34:11 GMT
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=10622>.
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=10622

Problem with nested iterate tags

           Summary: Problem with nested iterate tags
           Product: Struts
           Version: 1.1 Beta 1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Custom Tags
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: steveccm@rocketmail.com


Hi,

Environment : Tomcat 4.1.7 (Beta) and Struts 1.1 (Beta)

I'm encountering errors when I'm using one iterate tag within another.  For 
both tags, I'm also using the property 'indexId' which I assigned a variable 
name and this is where the problem lies.

I'm getting an error as shown below:

Generated servlet error:
    [javac] Compiling 1 source file
D:\Tomcat 4.1
\work\Standalone\localhost\augolfgui\jsp\mer\mer_0005fadd$jsp.java:754: cannot 
resolve symbol
symbol  : variable terminalCount  
location: class org.apache.jsp.mer_0005fadd$jsp
                              java.lang.Integer _jspx_terminalCount_1 = 
terminalCount;

The correct code that should be produced is java.lang.Integer terminalCount = 
null;

The source code which I've written is as follows:
<logic:iterate id="storeList"
               collection="<%=merchant.getStoreList()%>"
               type="com.ai.golf.pd.StorePD"
               indexId="storeCount">
  <logic:iterate id="terminalList"
                 collection="<%=storeList.getTerminalList()%>"
                 type="com.ai.golf.pd.TerminalPD"
                 indexId="terminalCount">

Hopefully, my explanation is not too confusing.  Just one last point, I do not 
have this problem when I was using Tomcat 3.2.3 and Struts 1.0. Thank you.

Regards,
Steve Chia

--
To unsubscribe, e-mail:   <mailto:struts-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-dev-help@jakarta.apache.org>


Mime
View raw message