File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes HELP REQUIRED Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "HELP REQUIRED" Watch "HELP REQUIRED" New topic


mohan gandhi

Joined: Feb 18, 2001
Posts: 6
Hi Friends,
I'm learning java currently and taking a course on servlets and jsp.I need your help ine of my assignments.
1.I've to write a servlet which displays a list of students and when i click on a student it shows a list of courses that student is taking and list of courses available.
2.In the same page the servlet should have facilities to add or remove a course for a particular student.I did this with sql tables and it worked fine.
I'm asked to hardcode the student list, and the courses list, and the student and course information in the servlet.
I've no idea how to do this ,which type of collections to use for add and to relate between students and courses.
Your help in this regard is greatly appreciated.
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
Please don't post the same message to more than one forum. All replies to the "Servlets and JSP" forum, please.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
I agree. Here's the link:
It's not a secret anymore!