Using POST method from servlet

Discussions

Web tier: servlets, JSP, Web frameworks: Using POST method from servlet

  1. Using POST method from servlet (3 messages)

    Hi guys,

    I'd like to know how I can call a page using POST method without a JSP page, I mean, call another page with parameters from a servlet using POST. Usually I would create a JSP page with a form and hidden fields to submit, but I don't want my parameters can be seen with 'View Code'. I can't use forward because the other page is at another machine (I can't take the context).

    Thanks,

    Ivan.

    Threaded Messages (3)

  2. what about if store your parameters in the session? I am not sure but I hope it would help you.
  3. Use HTTPClient[ Go to top ]

    The easiest way to do this is to use something like the Jakarta Commons to create a POST request and then stream the result into the servlet response.
  4. Using POST method from servlet[ Go to top ]

    Check out for example HTTP taglib in Coldtags suite:
    http://www.servletsuite.com/jsp.htm

    You do not need to create a form.