This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Joined: Jun 28, 2000
Hi, WHat u need to do is store the variable value into a hidden field (on submit event say) and this hidden field value must be captured using request.getParameter() and assign to a Java variable. Then u can assign this value to another Java variable . Bye Gopinath
"rgopi", The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please choose a new name which meets the requirements. Thanks.
They need not be in the query string if you use a POST request as opposed to a GET. In other words, a hidden variable in a form as mentioned above. POST request parameters are sent in the request header. Cookies are also sent in the header and would be hidden as well. Any of these methods would serve the purpose of sending your data to the server with the HTTP request. - Peter
Originally posted by Bob Moranski: Hi, why only POST but not GET?
I may not have been very clear. Parameters to a GET request are included in the request URL. If you want to hide these parameters, for example so that they won't end up in bookmarks, you must use either cookies or POST requests. Both of these pass parameters in the request header, not in the URL. - Peter