facebook

view session attributes

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #284633 Reply

    erouse
    Participant

    I remember being able to look at user sessions and the session attributes in debug mode. But that was a while ago and might not have been since I have been using MyEclipse (after 12 years it all starts to run together). Is there a way to look at the user sessions and the data contained therein with MyEclipse?

    I am running a Resin 3 server from the IDE in debug mode.

    #284706 Reply

    Loyal Water
    Member

    Im sorry but I’m not sure what you are referring to over here. Are you referring to session variables ? Please correct me if I’m wrong.

    #284710 Reply

    erouse
    Participant

    I am referring to request.getSession().getAttribute(“”); where request is an HttpServletRequest. I am trying to take a very large existing web app and get the session attributes to have a consistent naming scheme. It would be a lot easier to get the names from an active session and find them than to search the code for all instances of session.setAttribute. I am also trying to create a document that will list which attributes are used by each use case.

    Isn’t documentation years after the fact fun 😉

    #284718 Reply

    Loyal Water
    Member

    You can view this in the variable window in the debug perspective.

    #284724 Reply

    erouse
    Participant

    The variable window in the debug perspective is empty, as in no values at all. And I am running the server from the IDE in debug mode.

    #284758 Reply

    Loyal Water
    Member

    erouse ,
    The variable window will get populated with values when you hit a break point and step thorugh your pages.

    I hope we are on the same frequency.

    #284778 Reply

    erouse
    Participant

    I think we are now. The one I remember didn’t require break points. It was possible to view the values during a working session. Now that I know that I need to stop the execution with a breakpoint in order to see the values, I think I should be ok. Would be nice to be able to view the values at any time, even if it were just a snapshot of the values at the time of the request.

    And it was probably WSAD with IBMs app server that I was remembering.

    #284793 Reply

    Loyal Water
    Member

    You will have to add a break point to view the variables.

    Would be nice to be able to view the values at any time, even if it were just a snapshot of the values at the time of the request.

    I’ll note this as a feature request.

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: view session attributes

You must be logged in to post in the forum log in