I tried doing this but I get the following error:
Error getting compiled page.
19,48: Attribute num has no value.
Do you have an idea , what's going wrong ?
Thanks,
Mahesh.
[EMAIL PROTECTED] on 07/29/99 11:09:37 AM
To: Mahesh Nanavate/STS/AUTOZONE
cc:
Subject: Your posting to the JSP mailing list
I think you need to rewrite the <repeat> tag as
<REPEAT index=myindex end=<%= num %> >
since what you are doing with the out.println in your code below is
generating
the upper limit of the loop as HTML, but what you really want to do is have
the
JSP compiler generate code to use the upper limit of the loop to control
the
#iterations, which is one step before the HTML generation process.
===========
Date: Wed, 28 Jul 1999 14:20:30 -0500
From: Nanavate Mahesh <[EMAIL PROTECTED]>
Subject: <REPEAT> tag's index
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Hi ,
I am unable to get what's wrong with this code snippet
My aim is to limit the repeating of the loop for the NumOfDistricts
time.
But it is giving the following error:
Error getting compiled page.
19,39: Attribute <%out.println( has no value.
<p>DISTRICT
<% int num = dataBean.getNumOfDistricts(); %>
<% out.println("No of Districts "+ num ); %>
<SELECT>
<REPEAT index=myindex <% out.println(" end = "+num); %> >
<INSERT>
<OPTION>$(bean=dataBean property=vctDistrict(myindex))
</INSERT>
</REPEAT>
</SELECT>
</p>
If I keep "end = 40 or some constant " then It works properly giving
the correct no. of districts.
Can anyone see what's going wrong over here ?
Thanks,
Mahesh.
===========
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".