Hi there. I am fairly new to Java and I'm in the middle of creating my first program. I've already completed a lot of it but I'm having trouble figuring out how to design one particular peice.
In my program there is a user say "Dave" and a bunch of "Groups" that Dave can belong to. The number of groups may change on any given day and can easily exceed 500 groups.
I need to design a page(s) that displays all of the groups that Dave can be added to and allows the user to select one or more groups. Each group is then inserted into the database. So far my plan looks similar to this
Group Page:
Determine User
Query database for list of Groups that User may belong to.
Display List and request User input.
Submit Request to Submission Page.
Submission Page:
Save each group and userid as row in Database.
Display Success Page.
My real issue is in deciding which display type ie/ combo boxes etc will best suit my needs on the group page and how I can pass the selected groups to the submission page.
Up until now I've only ever passed one group at a time via the bean to the submission page to run the update. Now I have to have some sort of input item in the Group page which lets the user select any number of groups and then pass those to the Submission page. I don't think a bean will allow me to pass multiple groups effectively. But I'm not sure. Does that make sense?
If someone has any examples or ideas perhaps you would be willing to share? My guess is that this is not an uncommon issue out there. I just can't find any examples from which to start the ball rolling. Any help would be appreciated!
Thank You!
CrystalVisualBOracle
In my program there is a user say "Dave" and a bunch of "Groups" that Dave can belong to. The number of groups may change on any given day and can easily exceed 500 groups.
I need to design a page(s) that displays all of the groups that Dave can be added to and allows the user to select one or more groups. Each group is then inserted into the database. So far my plan looks similar to this
Group Page:
Determine User
Query database for list of Groups that User may belong to.
Display List and request User input.
Submit Request to Submission Page.
Submission Page:
Save each group and userid as row in Database.
Display Success Page.
My real issue is in deciding which display type ie/ combo boxes etc will best suit my needs on the group page and how I can pass the selected groups to the submission page.
Up until now I've only ever passed one group at a time via the bean to the submission page to run the update. Now I have to have some sort of input item in the Group page which lets the user select any number of groups and then pass those to the Submission page. I don't think a bean will allow me to pass multiple groups effectively. But I'm not sure. Does that make sense?
If someone has any examples or ideas perhaps you would be willing to share? My guess is that this is not an uncommon issue out there. I just can't find any examples from which to start the ball rolling. Any help would be appreciated!
Thank You!
CrystalVisualBOracle