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,
getrequest. getrequests used retrieve data.- any
getrequest callsdoget()method of servlet getrequests idempotent, i.e. calling same resource again , again not cause side effects resources.- hence,
getrequest 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
Post a Comment