Hi Caroline, welcome to the Ranch.
I've edited your post to include the UBB [ code ] tags.
Here's what I came up with. First, I've modified your web.xml a little bit:
Then, your first servlet is modified thus:
Then, your second servlet...
As for what you are doing in the second servlet, you are attempting to retrive from the request, the values that you had placed into your table in the first servlet. But these values are not IN the request. They are only 'plain HTML' as output by that first servlet.
If you want to retrieve the name and quantity and price, these need to be made form fields as well, so that when you POST to the second servlet, they are placed in the request as well.
I could also get into the whole discussion about architecture, databases and how init-parameters aren't the best way to be doing what you are doing... but thought I'd just answer your question.
You need to make everything you want to retrieve from the request (in your second servlet) a parameter on the FORM in the first page.
[ January 15, 2002: Message edited by: Mike Curwen ]