Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

how to get sessionkey

humairm
2006-02-18
2013-01-13
  • humairm
    humairm
    2006-02-18

    I am generating multiple charts using multiple tags and a post processor using TransientSessionStorage manager. Obviously these are ChartImage objects that get sored in the session.

    Each of the charts are images with the following URL (for example):

    http://server/cewolf/cewolf.view;jsessionid=1F727BE665EB841115A8964962C459DF?img=1549183176&width=600&height=350&iehack=.png

    where 1549183176 happens to be the session key as well as the value of the image get parameter. What I want to do is get the ChartImage stored in the session using session.getAttribute(cid) the problem is I dont know how to get the cid on the JSP page? It would be nice if the sessionKey is the id attribute of the cewolf:map tag insted of a random number (1549183176) since there is no way to get the number directly.

    Am I making any sense?

     
    • Brian Fox
      Brian Fox
      2006-02-18

      The id is retreived from the serialize method. Using the transient session storage, there is no way to retreive the number, and the ids stick around in session memory until the session is terminated. If you look at the long term session storage, you can see a way to implement another storage object. You could create a new one that could return you the id somehow. 

       
    • humairm
      humairm
      2006-02-18

      How about extracting the entire image URL? Is there any way to do that. What I am trying to do is once the charts are generated on my JSP page I want to grab their URL's and embed them into an XML file.

       
      • Brian Fox
        Brian Fox
        2006-02-19

        you could take a look at the img tag and maybe implement a new tag to get what you want.