Thursday, April 8, 2004 07:50 AM
It sounds like you want to show 4 blank text inputs if the collection is null? If this is the case, use the logic:empty tag in order to test for "emptyness" in a collection, and then display the 4 blank fields (using struts tags of course). You can then iterate through normally or put your iteration in a logic:notEmpty body to be even cleaner.
As for your question about the size of the iteration, I'm not sure what you mean, as an iterater tag will iterate over your entire collection, based on how much you put in it on init or during your actions.