Get and Post issue

Discussion in 'Java' started by suneet.taparia@gmail.com, Feb 5, 2007.

  1. Guest

    Hi,

    I have a certain doubt regarding get and post method.

    Suppose I have a form

    <form action="abc.jsp?var=apply&var2=get" method="post">

    will the server be able to get me the parameters both from form post
    as well as of the query string in the request object.

    thanks in advance
    , Feb 5, 2007
    #1
    1. Advertising

  2. Andy Dingley Guest

    On 5 Feb, 10:51, "" <>
    wrote:

    > will the server be able to get me the parameters both from form post
    > as well as of the query string in the request object.


    Yes, but not in the same way. "Parameters" is a very general term and
    it includes both form parameters and those in the query string. You'll
    also need to implement both the doPost() and doGet() methods.

    If, as in the example you quote, then it's a POST with parameters
    embedded in the URL rather than supplied by <form> <input> elements,
    then yes it's just like retrieving them from a GET.
    Andy Dingley, Feb 5, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sridhar Hegde
    Replies:
    2
    Views:
    2,504
    Ajeetha Kumari
    Sep 13, 2004
  2. khawar
    Replies:
    2
    Views:
    1,373
    vMike
    Oct 28, 2003
  3. John Dalberg
    Replies:
    8
    Views:
    622
    John Dalberg
    Sep 23, 2004
  4. arnuld
    Replies:
    6
    Views:
    589
    arnuld
    Sep 5, 2007
  5. rvsw
    Replies:
    1
    Views:
    147
    kaeli
    Oct 22, 2004
Loading...

Share This Page