struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Maves <Nathan.Ma...@Sun.COM>
Subject dynamic parameters
Date Tue, 10 Feb 2004 00:24:08 GMT
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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message