It's not a secret anymore!*
The moose likes Struts and the fly likes Need to generate a form dynamically with repeating form elements [Based on the number Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Need to generate a form dynamically with repeating form elements [Based on the number" Watch "Need to generate a form dynamically with repeating form elements [Based on the number" New topic
Author

Need to generate a form dynamically with repeating form elements [Based on the number

avinash avinash
Greenhorn

Joined: Sep 27, 2005
Posts: 1
Using Struts, Need to generate a form dynamically with repeating form elements [Based on the number N entered by user] the FORM should show the below Logo's elements N times in a JSP , user will then enter all fields and submit the form.

(refer output.htm attached)

Logo#1 - label

Name_1 textbox Description_1 textarea Status_1 radio button Sequnce_1 textbox

Logo#2 - label

Name_2 textbox Description_2 textarea Status_2 radio button Sequnce_2 textbox

etc

The above is needed in Create/ Edit screen of Logos collection data. How to achieve this with Struts f/w ? If anyone has worked on such Form display and Validations using Struts, pls reply back ...

thanks, Avinash
alan do
Ranch Hand

Joined: Apr 14, 2005
Posts: 354
search web for struts indexed properties. this will solve your problem.


-/a<br />certified slacker...yes, my last name is 'do' - <a href="http://www.luckycouple.com" target="_blank" rel="nofollow">luckycouple.com</a>
 
Consider Paul's rocket mass heater.
 
subject: Need to generate a form dynamically with repeating form elements [Based on the number
 
Similar Threads
Drag & Drop feature using GWT
making the textbox readonly
Need to generate a form dynamically with repeating form elements [Based on the number
List Of Radio buttons with other option
logic:iterate ?? Urgent - please help!!!!