doubt regarding response.encodeURL and JSessionid

Posted on 2004-11-19
Last Modified: 2010-04-01

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

Question by:chaitu chaitu
    LVL 11

    Expert Comment

    By using encodeURL(url), it will automatically append !jsession=xxxxxxxxxxxxxxxxxx after ex.jsp
    LVL 3

    Accepted Solution

    LVL 35

    Expert Comment

    If you just turned cookies off for your browser and tested this, you would have seen that it worked ;-)

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now