Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Get and Post issue

Reply
Thread Tools

Get and Post issue

 
 
suneet.taparia@gmail.com
Guest
Posts: n/a
 
      02-05-2007
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

 
Reply With Quote
 
 
 
 
Andy Dingley
Guest
Posts: n/a
 
      02-05-2007
On 5 Feb, 10:51, "suneet.tapa...@gmail.com" <suneet.tapa...@gmail.com>
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Get ubuntu ! Get ubuntu ! Get ubuntu ! Get ubuntu ! Getubuntu Windows 64bit 1 06-01-2009 08:54 AM
Why "Welcome Message" I post come get posted as the reply to same post ? arnuld C++ 6 09-05-2007 05:24 PM
Why does mail.yahoo.com issue a GET request when the form says POST rvsw Javascript 1 10-22-2004 01:02 PM
Post post post. Shel-hed Computer Support 2 11-08-2003 07:41 AM
get a value in the servlet with get, but null with post Shiv Java 3 10-13-2003 01:58 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57