class="java" name="code">Cookie cookie = new Cookie("user",URLEncoder.encode(nMessage, "UTF-8")); response.addCookie(cookie);