why can a parameter sent with GET survive several requests?

ideompirm

New Member
In my JSP file I have a HTML form that sends data via GET to my servlet.\[code\]<form method="GET"> <input name="cmd" type="hidden" value="http://stackoverflow.com/questions/14532656/firstValue"/> .....</form>\[/code\]If I now trigger a different form having also a variable called \[code\]cmd\[/code\], but using POST, the old \[code\]cmd\[/code\] value will stay in the parameter list I can read out in my servlet like this: \[code\]request.getParameterValues("cmd")\[/code\].\[code\]<form method="POST"> <input name="cmd" type="hidden" value="http://stackoverflow.com/questions/14532656/secondValue"/> .....</form>\[/code\]Why can the GET parameters survive several requests? Where/how are the they stored in contrast to the POST parameters in the servlet?
 
Back
Top