Mulitple Submit Buttons

Hi,

I am new to java servlets. I am trying to create a form that has multiple submit buttons. The form must send dateOne (variable) when a userOne (variable) clicks the submit button. Then later, lets one day later, the dateTwo variable is submitted to the servlet. For every time the data is submitted to the servlet, I will need to update the data to the database.

I currently have a form with some javascript to validate the data and thats it.

What is the best way to handle this form with multiple submits to the servlet?

Thank you

[566 byte] By [foxForce5a] at [2007-11-26 19:12:46]
# 1

For the front end use

HTML form , method = post or get and action = URL of your servlet

Define your servlet and URL mapping in web.xml located under WEB-INF folder

Then create the Servlet you defined in web.xml

The servlet calls a JavaBean , which stores the user name and date.

Use another Java class to connect to the database via JDBC, and then using JDBC statement and SQL , insert the user id and date into a table in the database.

appy77a at 2007-7-9 21:11:37 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...