Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2007

Tip: Looking for answers? Try searching our database.

Get and Post issue

Thread view: 
suneet.taparia@gmail.com - 05 Feb 2007 10:51 GMT
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
Andy Dingley - 05 Feb 2007 11:21 GMT
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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.