JSP/Struts URGENT question!!!!
Posted on 2003-10-28
I am working on a registration page for a site using Jakarta Struts and JSP. Before I get the user to fill out all their registration details, I want them to select from a list of personal trainers, which I will then allocate the chosen one to them, and then take them to the registration page.
Currently, as soon as they click to register, I have extracted an arraylist of personal trainers (name, photo, biog etc) and display them all on a jsp page with a submit button each. However, I am having trouble in making each separate submit button belong to that specific personal trainer id. I want the user to be able to click on whichever submit button belongs to the personal trainer they are using, and then get taken to the next page, which is the registration page, which will then populate a text box with the personal trainers id.
I am not sure whether I should set that personal trainer as a session constant, or if I can
simply pass the personal trainer's id over to the registration page as a parameter?????
This is EXTREMELY urgent, so I would really appreciate some help as soon as possible. I have been going round and round in circles but nothing seems to work.