aspose file tools
The moose likes Servlets and the fly likes GET or POST method Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "GET or POST method " Watch "GET or POST method " New topic
Author

GET or POST method

Monica Smith
Greenhorn

Joined: May 15, 2003
Posts: 5
hi everybody,
anyone in the group please let me know regarding foll.:
if there is an HTML form and I am entering some keywords in the textbox and press SEARCH button, which is considered preferable/efficient: GET or POST or BOTH.
Thanks in advance,
Regards,
Monica
Manish Hatwalne
Ranch Hand

Joined: Sep 22, 2001
Posts: 2573

I am not so sure about efficiency, but rest depends on your requirements - if the search term is small and you'd like to allow your user to bookmark the page, then GET would be a better option.
HTH,
- Manish
Amy Phillips
Ranch Hand

Joined: Apr 02, 2003
Posts: 280
It also depends on security, with the Get method all values are passed through the browsers address bar so things like passwords clearly cannot be passed this way and so use Post which hides them.
Amy
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: GET or POST method
 
Similar Threads
Components size
href and submit differences
Form submit problem
service method not overridden
what happens after you pass your parameters along with your submits