Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Please Help -- JSP Question

Status
Not open for further replies.
Jan 8, 2001
163
US
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 :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top