I assume that for form pre-population I will have to set the array value in the form before it gets to the jsp.
Say I have a list of students that could be larger then the array of the up-datable fields.
I loop though all of the students but only n number of them will have data in the array from the form. Is this possible?
I hope I explained this well if not I can call anyone who is willing to listen :)
Nathan
On Feb 9, 2004, at 5:32 PM, Matt Bathje wrote:
What you want are called indexed properties in struts.
Start here: http://jakarta.apache.org/struts/faqs/indexedprops.html and here: http://www.developer.com/java/ejb/article.php/2233591
Then search the list archives for any specific questions you have, many have
been answered.
Also, if you are having n number of elements, make sure your form goes into
the session scope instead of the request scope. This is probably the biggest
issue with indexed properties I have seen.
Matt Bathje
----- Original Message ----- From: "Nathan Maves" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, February 09, 2004 6:24 PM Subject: dynamic parameters
I have searched but found nothing on this specific example.
I have a form that will have n number of elements. Each of these elements will needs it own name.
example.
list of students is displayed on the screen with two text fields for their first and last name.
This is for a mass update page.
The only way I can thing of is to have form element like..
<text name="#student_id#-#first_name#"> <text name="#student_id#-#last_name#">
This way in my action I can parse out the student id and then update the corresponding first and last name.
Can this be done or is there a better way to do it.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]