Hi all, i had a requirement and since i am new to Struts i doubt whether it is possible using Struts Framework.
I had a simple java bean which has a student information. there can be 'n' of instances for n number of students. i am displaying these information to the user in front end by having a array containing all the student objects. User had a option to choose any students he wish and submit it for some other process (done in another target action servlet).
The problem here is how can i determine which students did the user selects in the target action servlet..
Currently i acheived this by having a hidden html variable that holds the list of students the user seleceted. set that varible in request attribute. Refer this variable in the action servlet and process only the chosen students.
But i felt there might be some better way to do this type of requirement using struts (ActionForm bean) .
In Struts you would accomplish this in essentially the same manner as you are doing now, except that you would define the variable with the list of students in your ActionForm and refer to it rather than getting it from the request object.