A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Frameworks
»
Struts
Author
Struts Logic:Iterate
Ggaurav Gupta
Greenhorn
Joined: Mar 26, 2010
Posts: 9
posted
Apr 05, 2010 04:31:18
0
Hi i want to display 5 fields to the users ........
a collection is dynamically generated from database .........
suppose a collection cantains 2 elements then logic:iterate displays 2 fields .......... but i want 5 fields 2 prepopulated and 3 blank fields .......
how can i do this .......... please help
Maneesh Godbole
Saloon Keeper
Joined: Jul 26, 2007
Posts: 8439
I like...
posted
Apr 05, 2010 06:01:25
0
CarefullyChooseOneForum
This is the Swing forum. Your question is related to Struts.
Moving thread.
[
Donate a pint, save a life!
] [
How to ask questions
] [
Onff-turn it on!
]
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12617
I like...
posted
Apr 05, 2010 06:56:29
0
Either add empty objects to the collection, or keep track of how many blank fields you need to add and add them separately.
And fix your period (".") key, it seems to be stuck.
I agree. Here's the link:
http://aspose.com/file-tools
subject: Struts Logic:Iterate
Similar Threads
Collection of bean input from form-problem
nested logic:iterate tags possible?
c:when test = .....problem
Help for logic match
How to do Paging in struts
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter