Mike,
Have you checked out the Struts iterator tag? That would do what you want
w/ a custom tag. As for direct bean access not being supported in future
versions, I haven't heard anything about that. Beans are just like any
other Java object.

Try this:

<%    for (int i = 0; i < Test.getIdx(); i++)
             {
         String myName = i + "name";
         String myValueName = i + "value";
         String myValue = test.getValue(i);

             %>
             <p>
                &lt; Input Tag <%= i %>&gt;
                 Name:  <input type="text" name="<%= myName %>"
size="20"                value="<%= myValue %>">
                 Value: <input type="text" name="<%=myValueName %>"
size="50"></p>
              <%
             }
             %>

-Richard

At 01:30 AM 4/27/2002 -0600, you wrote:
>This is in fact what I am trying to do:
>
><%    for (int i = 0; i < Test.getIdx(); i++)
>             {
>             %>
>             <p>
>                < Input Tag<%out.print(i);%> >
>                 Name:  <input type="text" name="i<%out.print(i);%>name"
> size="20" value="<jsp:getProperty name="test"
> property="name<%out.print(i);%>"/>">
>                 Value: <input type="text" name="i<%out.print(i);%>value"
> size="50"></p>
>              <%
>             }
>             %>
>
>but it does not work for the property name, is there a way to make it work
>for a parametrized property name?
>
>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

Reply via email to