All I am trying to do is, block the cookies and use "encodeURL()" method to append "jsessionid" at the end of the URL.
The URL that must show the "jsessionid" appended to it, is "http://localhost:9888/SessionCheck/checkcookie.do" but it does not show it.
I have added the context to the URL as suggested by you. I disable the cookies on the browsers like chorme, firefox and IE but it does not show "jsessionid" due to some reason.
I read if the browser does not accept the cookies, the "jsessionid" is appended to the URL if we use "encodeURL()" so I want to test the same.
I run application using "http://localhost:9888/SessionCheck/login.html", I click the "Submit" after entering the name, a new link "Click Here" comes up, I click it and a blank page comes up instead of "Hello <Name>" and the "jsessionid" appended to the URL (http://localhost:9888/SessionCheck/checkcookie.do).