Results 1 to 3 of 3
  1. #1
    juggernaut26 is offline Member
    Join Date
    May 2012
    Posts
    1
    Rep Power
    0

    Default 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,

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,887
    Rep Power
    25

    Default Re: passing data from .jsp or HTML form fields to a JAVA File and to a database

    What is a JAVA file?
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,224
    Rep Power
    20

    Default 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.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Mysql data to build a HTML form
    By skigodmg in forum Java Servlet
    Replies: 1
    Last Post: 03-22-2011, 06:29 AM
  2. JLabel, HTML Form: How to access the data?
    By q.kontinuum in forum AWT / Swing
    Replies: 0
    Last Post: 01-27-2010, 03:23 PM
  3. Replies: 10
    Last Post: 08-12-2009, 05:02 PM
  4. Replies: 0
    Last Post: 04-04-2008, 10:36 AM
  5. how to upload a file along with html form data
    By pranith in forum Java Servlet
    Replies: 3
    Last Post: 07-30-2007, 03:33 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •