Results 1 to 6 of 6
  1. #1
    Gunther34567 is offline Member
    Join Date
    May 2012
    Posts
    4
    Rep Power
    0

    Default send a form to servlet with a link

    Hi this is my first time on this forum and i would be gratefull if someone could help me

    I got a form on my jsp page and i want to send the filled in values in the input fields (textboxes, dropdowns) to be send to my servlet to update a database

    i want to send all the info with a link
    i know how to send a parameter with a link but i dont know how to put all the form values in the link

    preffered no answers about javascript or php as it is for a school project we got to make
    Last edited by Gunther34567; 05-05-2012 at 11:47 PM.

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

    Default Re: send a form to servlet with a link

    If it's a form then why not simply submit the form?
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  3. #3
    Gunther34567 is offline Member
    Join Date
    May 2012
    Posts
    4
    Rep Power
    0

    Default Re: send a form to servlet with a link

    because i want the user to click an image to submit the form instead of a button, and i dont know if its possible to put an image on the button

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

    Default Re: send a form to servlet with a link

    There's an 'image' type for <input> which should do the job.
    I've never used it, only used <a><img/></a> myself, but that needs some Javascript.
    Check w3schools.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  5. #5
    Gunther34567 is offline Member
    Join Date
    May 2012
    Posts
    4
    Rep Power
    0

    Default Re: send a form to servlet with a link

    thanks i didn't know that

  6. #6
    nicephotog is offline Member
    Join Date
    Mar 2012
    Posts
    41
    Rep Power
    0

    Default Re: send a form to servlet with a link

    Try this...

    Java Code:
    <button type="submit">
    <image src="mybuttonimage.gif">
    </button>

Similar Threads

  1. how to send a link through action class in struts
    By Kadiyala in forum New To Java
    Replies: 0
    Last Post: 02-17-2011, 07:44 AM
  2. how to link first form to second form?
    By i4ba1 in forum SWT / JFace
    Replies: 1
    Last Post: 11-25-2009, 05:47 AM
  3. Replies: 0
    Last Post: 10-31-2009, 09:24 AM
  4. how can i link html+servlet+xml to form servlet
    By balachandarr in forum Java Servlet
    Replies: 0
    Last Post: 04-15-2009, 04:06 PM
  5. Jtree link to JFrame Form
    By daniel50096230 in forum NetBeans
    Replies: 4
    Last Post: 09-16-2008, 06:53 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
  •