GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  J2EE  >  JSP
Go To First  |  Previous Question  |  Next Question 
 JSP  |  Question 39 of 306    Print  
What are the differences between GET and POST service methods?
A GET request is a request to get a resource from the server. Choosing GET as the "method" will append all of the data to the URL and it will show up in the URL bar of your browser. The amount of information you can send back using a GET is restricted as URLs can only be 1024 characters. A POST request is a request to post (to send) form data to a resource on the server. A POST on the other hand will (typically) send the information through a socket back to the webserver and it won't show up in the URL bar. You can send much more information to the server this way - and it's not restricted to textual data either. It is possible to send files and even binary data such as serialized Java objects!



  
Total Answers and Comments: 1 Last Update: September 16, 2005   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 12, 2005 17:18:33   #1  
p_kandukuri Member Since: September 2005   Contribution: 8    

RE:

GET is faster. And it is not exactly restricted to 1024 characters.
but, POST is secure.


 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : There are nine implicit objects in JSP. 1. pageContext 2. session 3. request 4. response 5. exception 6. out 7. application 8. config 9. page  These are used for different purposes and actually ...

How do I have the JSP-generated servlet subclass my own custom servlet class, instead of the default?
One should be very careful when having JSP pages extend custom servlet classes as opposed to the default one generated by the JSP engine. In doing so, you may lose out on any advanced optimization that 

You can declare methods for use within your JSP page as declarations. The methods can then be invoked within any other methods you declare, or within JSP scriptlets and expressions.Do note that you do 

We know that session tracking uses cookies by default to associate a session identifier with a unique user. If the browser does not support cookies, or if cookies are disabled, you can still enable session 

A jsp:useBean action may optionally have a body. If the body is specified, its contents will be automatically invoked when the specified bean is instantiated. Typically, the body will contain scriptlets 

You cannot override the _jspService() method within a JSP page. You can however, override the jspInit() and jspDestroy() methods within a JSP page. jspInit() can be useful for allocating resources like 

Yes. However, unlike servlets, you are not required to implement HTTP-protocol specific methods like doGet() or doPost() within your JSP page. You can obtain the data for the FORM input elements via the 

GenericServlet is for servlets that might not use HTTP, like for instance FTP service.As of only Http is implemented completely in HttpServlet. The GenericServlet has a service() method that gets called 

A GET request is a request to get a resource from the server. Choosing GET as the "method" will append all of the data to the URL and it will show up in the URL bar of your browser. The amount 
Latest Answer : GET is faster. And it is not exactly restricted to 1024 characters.but, POST is secure. ...

Simply have doGet call doPost, or vice versa. 


 Sponsored Links

 
Related Articles

Service Oriented Java Business Integration Review

Service Oriented Java Business Integration Review Introduction If you ve read through the texts which give you an introduction to SOA or Web Services you will often find them to be quite frustrating and the reason for this is because they spend too much time referencing business processes which are
 

Switched Multi Megabit Data Service (SMDS)

Switched Multi Megabit Data Service SMDS SMDS or Switched Multi Megabit Data Service is used to communicate on the Public Data Networks using the WAN networking technology The SMDS technology uses fiber or copper wires for networking There are many components in the SMDS networking environment that
 

Service Autonomy

Service Autonomy As Businesses continue to step up the process of constructing enterprise automation logic in the service format there is also an increasing need to step up both the efficiency and reliability that the services are intended to take on at run time This dire need is increased when it c
 

Service Oriented Infrastructure

Service Oriented Infrastructure Service Oriented Infrastructure is a systematic means for describing Information Technology infrastructures in the terms of a service The underlying principles of Service Oriented Infrastructure revert back to LDAP and Mainframe technologies among others Where Service
 

Service Reusability

Service Reusability One of the most vital principles of Service Oriented Architecture is that of service reusability And in today’ s day and age it can be said that we have been making a lot of progress towards improving both this central tenet and Service Oriented Architecture in general
 

Standardized Service Contract

Standardized Service Contract Standardized service contracts are one of the key Service Oriented Architecture principles They ensure that services that are in the same inventory of services are kept in compliance with contract design standards The services in a Service Oriented Architecture are able
 

Service Discoverability

Service Discoverability Service discovery protocols can be thought of as network protocols that allow for the automatic detection of both services and devices that are offered by a computer network’ s various devices There are a lot of service discovery protocols available In this article
 

Service Loose Coupling

Service Loose Coupling Loose coupling can be thought of as the resilient relationship that exists among two or more systems or companies that have some sort of relationship based on exchange Each transactional end should make its requirements explicit somehow and make very few if any assumptions abo
 

Service Encapsulation

Service Encapsulation What is Encapsulation In the realm of computer networking the term encapsulation is utilized to include data from an upper layer protocol in to a protocol on a lower layer Such a method of abstraction through networking allows many different layers to add on functionality and f
 

Service Composability

Service Composability The principle of Service Oriented Architecture known as Service Composability can be broken up into two basic principles Service Discoverability and Service Composition When it comes to the realm of Service Design a lot of attention is paid to the enabling of those characterist
 





About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape