passing data from .jsp or HTML form fields to a JAVA File and to a database
Hi,
I am new to JAVA, I have a form "user registration.html" where I fill in the data and when I press "submit", I want this data to be transmitted to a JAVA file where I process the data in those individual form fields. I want a way in which data can be transferred from HTML file to a JAVA file. If that transmission is difficult, I can always use .jsp, but then I need a way in which form data in .jsp file can be transmitted to a JAVA object in a particular JAVA file.
Please Help @ the earliest,
Thanks,
Re: passing data from .jsp or HTML form fields to a JAVA File and to a database
Re: passing data from .jsp or HTML form fields to a JAVA File and to a database
The standard webapp structure is a long the lines of:
client browser submits form ->
servlet handles request, possibly turning some data into a model, passing on to ->
business layer which does whatever based on the data in the model (which could include persisting to a database), returning any result to ->
servlet which populates the request with any necessary parameters before forwarding to ->
JSP which constructs the page based on the data supplied by the servlet and then back to ->
the client browser.