I am using beans successfully to store data as it passes from servlet to JSP page. Now I am hoping to send an array, of unknown size, through the bean. (The first version will be a list of products that will end up being in a table).
What is the correct way to do this?
I could do something like
<jsp:getProperty name="productTable" property="name1" /> <jsp:getProperty name="productTable" property="name2" />
<jsp:getProperty name="productTable" property="name3" />
<jsp:getProperty name="productTable" property="name4" />
But this seems absurd. Is there any way to support arrays in beans?
Looking at these links it is not clear:
http://java.sun.com/products/jsp/tags/11/syntaxref11.fm14.html http://java.sun.com/products/jsp/tags/11/syntaxref11.fm10.html