Mike,
What are the properties of the bean like? Is nblines stored as an int? Do
you have a getNblines() method? If so, use,
<% for (int i=0;i<test.getNblines();i++)
{
out.println(<p>this is the index of the loop: " + i +"</p>");
}
Regards,
Richard
At 10:41 PM 4/26/2002 -0600, you wrote:
>How is it possible to propagate the value of a property?
>
>For example a bean contains an integer saying how many lines of an input
>zone will be visible on the jsp so I can easily do something like:
>
><p> This is the number of lines that I need: <jsp:getProperty name="test"
>property="nblines"/>
>
>but now I would like to use a loop to display these lines but I do not
>know how to transmit this information to:
>
><% for (int i=0;i<nblines;i++)
> {
> out.println(<p>this is the indix of the loop: " + i +"</p>");
> }
>%>
>
>Do you guys know an easy way to do this? It is a piece of cake if the
>value is coming from an html form, of course.
>
>Thanks, Mike
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
> http://archives.java.sun.com/jsp-interest.html
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.jsp
> http://www.jguru.com/faq/index.jsp
> http://www.jspinsider.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com