Link to home
Start Free TrialLog in
Avatar of chaitu chaitu
chaitu chaituFlag for India

asked on

doubt regarding response.encodeURL and JSessionid

hi

imy doubt regarding response.encodeURL

i know this method is used when u disable cookies in the browser

jsessionid will append in the URL

<a href="<%=response.encodeURL(ex.jsp)%>"?name='+name>

my doubt is how jsessionid will append to the URL when i use encodeURL method;

should i create sessionid using session.getId();

should i applend  this sessionid to the URL;

how this Jsessionid will work in ex.jsp when i use request.getParameter("name");


what is the use of jsessionid here explain me clearly


Avatar of sompol_kiatkamolchai
sompol_kiatkamolchai
Flag of Thailand image

By using encodeURL(url), it will automatically append !jsession=xxxxxxxxxxxxxxxxxx after ex.jsp
ASKER CERTIFIED SOLUTION
Avatar of vikraman_b
vikraman_b

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If you just turned cookies off for your browser and tested this, you would have seen that it worked ;-)