I don't know you the form looks like when you are adding an item.
But let's say you have a form that looks like this
In the
servlet you use request.getParameter to retrive the data entered.
When inserted into a database you normaly have an identity key. That means that a row in the table must be unique to retrive the data.
Here's an example table
// Mathias