Editing form from servlet (resource reservation)

Hi. i wanted to ask for some advise on how to go around the following problem:

I am trying to build a simple servlet that allows users to use a web page to Add reservations to my “Resource Reservation Database”.

i am currently looking through the help file for the right methods.

my idea on how this might work is:

  1. The servlet accesses the “New Reservation” Form IE:

Form form = db.getForm(“Form Name”);

  1. The next bit of code edits the forms fields

PESODO CODE

form1.field(“Field name”) = “what value i want”

  1. theres some code to same the new entries

form.saveEntries();

am i on the right track or going down the wrong lane, let alone the wrong way?

any advise would be mostly grateful!

Thanks , Michael