Thread: j2ee session ??

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    1
    Rep Power
    0

    Question j2ee session ??


    hi all,

    can any one give me the exact architecture details abt the
    session created using jsp and servlet.

    in a j2ee application,session are created using jsp or servlet??

    plz any body reply me...
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    78
    Rep Power
    12
    JSPs are just specialized servlets. In a servlet you can get the session for the current request by using...
    Code:
      HttpSession hs = request.getSession();
    You can do the same thing in the jsp but the jsp already has a session variable, since the above code is inserted into the generated code at compile time.

    If this doesn't help then please be more specific with what you are asking.

IMN logo majestic logo threadwatch logo seochat tools logo