java - How does doGet() support bookmarks? -


reading below link , note "doget() allows bookmarks".

http://www.developersbook.com/servlets/interview-questions/servlets-interview-questions-faqs.php : search "it allows bookmarks"

can tell how , use of ?

all parameters of get request contained in url when requesting resource using get request, can formed using request url itself. consider example www.somesite.com.somepage.jsp. generates get request because asking resource somepage.jsp.

  • if asking resource, get request.
  • get requests used retrieve data.
  • any get request calls doget() method of servlet
  • get requests idempotent, i.e. calling same resource again , again not cause side effects resources.
  • hence, get request can have bookmarks

edit :-

as suggested jerry andrews, post methods not have query data unlike get requests form resource of url. hence not bookmarked.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

c++ - End of file on pipe magic during open -