Results 1 to 3 of 3

Thread: Java doPost HTML sending

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2007
    Posts
    2

    Java doPost HTML sending

    I have a servlet doing this:
    Code:
    <form action="ACTION URL" method="post">
        <input type="text" name="id" style="width: 100%"></td>
        <input type="password" name="password" style="width: 100%"></td>
        <input type="image" src="/submit.gif" class="submitImage">
    </form>
    Indeed I need to do it inside my Java Application:
    i mean i don't really need the servlet, if I can send this data from my application. I have basic knowledge about how a normal HTML response page is built, i would like to know if I have to send line by line all the headers and body, and how to include the 2 parameters i need.
    Or, if there is some kind of function that can do that without having to manually insert all that stuff.

    Thanks

  2. #2

    Thread Starter
    New Member
    Join Date
    Mar 2007
    Posts
    2

    Re: Java doPost HTML sending

    Of course i mean I think I need the HTTP headers to send the reply, like if i were selling with Telnet... not sure...

  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: Java doPost HTML sending

    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

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



Click Here to Expand Forum to Full Width