Results 1 to 3 of 3

Thread: how to get session value in EXTJS

  1. #1
    Ext User nileshpatil's Avatar
    Join Date
    Apr 2008
    Location
    Mumbai, India
    Posts
    31
    Vote Rating
    0
      0  

    Question how to get session value in EXTJS

    how to take value from session in Javascript...???

    I hava application in that My login page is JSP page ( struts) after login I need to show 'TreePanel' of EXTJS in that i have to use login id ...
    so i think i have to put login id in session and after that retrieve that value in javascript page .. this is right ????

    if right please any one tell me how take value from session in javascript????
    Nilesh Patil
    Project Associate
    www.mkcl.org

  2. #2
    Ext User ritesh.kapse's Avatar
    Join Date
    May 2008
    Location
    Pune, India
    Posts
    120
    Vote Rating
    0
      0  

    Default you can use hidden form component

    you may use hidden form component for that... but in this case you would have to submit this form component in every server call...

    I would suggest... use server side session management...

    you can do something like this...

    Code:
    session.setAttribute("loginId",loginId); // when the user first logins
    and then...


    Code:
    session.getAttribute("loginId"); // for every other server call later...

  3. #3
    Sencha User
    Join Date
    Mar 2012
    Location
    India
    Posts
    45
    Vote Rating
    0
      0  

    Default

    "Session Is not defined " is the error i am getting

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •