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.
While generating <A href="..."> in a servlet response, we can use response.encodeURL() to append session id to the URL. But what should we do for URL rewriting/encoding while submitting an html form (GET/POST) where target url is specified in form's action? Should this be done manually by appending session id in form's action url using getId() method of HttpSession ?