M
Marcus Reiter
I have a list of data coming from the database that shows me
tests and wether or not people (showing their id) have signed up for them
already
or not yet.
Using plain JSP I need to create a checkbox for each of those values and if
that person
has already signed up for that test it needs to be checked, while it needs
to be unchecked if
the person has not yet signed up.
It also has should be possible to check / uncheck checkboxes and then to add
/ delete values from the database.
How would you design this?
For one person, I thought about an array that has the name of the test and
then in the next field wether or
not the person has signed up for this test or not.
Now in the jsp a new array will be created.
Would you compare both arrays and just update those values that have changed
or would you
just delete all entries of that person and recreate all entries?
What easier / better in performace / better design whise?
Any ideas?
Thanks,
Marcus
tests and wether or not people (showing their id) have signed up for them
already
or not yet.
Using plain JSP I need to create a checkbox for each of those values and if
that person
has already signed up for that test it needs to be checked, while it needs
to be unchecked if
the person has not yet signed up.
It also has should be possible to check / uncheck checkboxes and then to add
/ delete values from the database.
How would you design this?
For one person, I thought about an array that has the name of the test and
then in the next field wether or
not the person has signed up for this test or not.
Now in the jsp a new array will be created.
Would you compare both arrays and just update those values that have changed
or would you
just delete all entries of that person and recreate all entries?
What easier / better in performace / better design whise?
Any ideas?
Thanks,
Marcus