Results 1 to 2 of 2
  1. #1
    Santoshbk is offline Member
    Join Date
    Apr 2008
    Posts
    5
    Rep Power
    0

    Default Please help me. Input Values sending from Jsp to Servlet

    Hello to All,

    how we can send post method form fields by hyper link to a servlet?

    Ex: <form method=post action="/abs ">

    <INPUT type="text" name="firstname" >
    <INPUT type="text" name="lastname" >

    <a herf ="xyz">

    <a>
    </form>

  2. #2
    neeraj.singh is offline Member
    Join Date
    Feb 2009
    Location
    Delhi
    Posts
    63
    Rep Power
    0

    Default

    <a href="servlet" onclick="submitForm()" /a>
    here in the javascript function submitForm()
    submit the form
    eg:
    form1.action = servletpath;
    form1.target = "_none";
    form1.submit();


    this will submit the form and you can grab the value into the servlet.

Similar Threads

  1. draw in jpanel using values input in textbox
    By New to JAVA in forum AWT / Swing
    Replies: 6
    Last Post: 07-08-2009, 11:06 AM
  2. how to send values from servlet..
    By hussainzim in forum Java Servlet
    Replies: 1
    Last Post: 08-06-2008, 07:28 AM
  3. Servlet sending the file (setting header)
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-27-2008, 08:14 PM
  4. sending image file from JSP to Servlet
    By ravian in forum Advanced Java
    Replies: 2
    Last Post: 01-10-2008, 02:34 PM

Posting Permissions

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