You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Chakradhar Tallam <c....@objectconsulting.com.au> on 2002/09/20 02:38:12 UTC

jasper with tomcat 4.0.3 Vs jasper with tomcat 4.1.10

hi all,

jasper with tomcat 4.0.3 executes the following code properly when there is
an iterate inside iterate

 <!-- Additional Adults -->
 <logic:greaterThan name="GetFareFlightJSForm" property="numberOfAdults"
value="1" scope="session">
 <logic:iterate indexId="index" id="additionalAdultProfile"
name="SessionVariables" property="additionalAdultProfiles" scope="session">
     <tr>
         <td class="selectedValue"><%= seqCount %>
         </td>
         <td>
             <html:select property="<%=\"adultTitle[\" + index + \"]\" %>"
styleClass="entryField" styleId="title" onkeypress="checkEnter(event);">
                 <% String titleKey; %>
                 <logic:iterate id="titleOption" name="ApplicationVariables"
property="titleOptions">
                     <% titleKey = "Title." + titleOption; %>
                     <html:option value="<%= titleOption.toString() %>"
key="<%= titleKey %>"/>
                 </logic:iterate>
             </html:select>
         </td>
     </tr>
     <% seqCount = seqCount + 1; %>
 </logic:iterate>
 </logic:greaterThan>

where as rewritten jasper with tomcat 4.1.10 gives an error

Generated servlet error:
    [javac] Compiling 1 source file
C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\TN\Book_jsp.java:544: _jspx_titleOption_1 is
already defined in
_jspService(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpSer
vletResponse)
                          java.lang.Object _jspx_titleOption_1 =
titleOption;
                                                  ^

Is this a bug in new jasper or do i need to use the iterate tags in some
other way.

Thanks in advance.
-------------------------
Chakradhar Tallam
Consultant
Object Consulting
Level 11 / 75 Miller Street, North Sydney, NSW - 2060
Phone: +61 2 9459 3356 Fax: +61 2 9955 6659 
Email: ChakradharT@objectconsulting.com.au
Web: http://www.objectconsulting.com.au/
consulting | development | training | support
our experience makes the difference