Jann Forrer wrote:
On Sun, 8 May 2005, Michael Wechner wrote:
Jann Forrer wrote:
I did try to do this starting with a simple example i.e. a listener which
only counts the active sessions. This works quite well now but i noted
that a logut did not invalidate the session (meaning that if a user did
log out i still had the same number of sessions).
The reason is that session.invalidate(); is not called in logout.xsp. If
i add it to login.xsp:
I carry on with that functionality and wrote a class which implements
HttpSessionAttributeListener where the identity of a user is stored in a
HashMap in the attributeAdded method or is removed from the HashMap in the
attributeRemoved method respectivelly.
Just to check it i wrote an cocoon action which display the logged in
user. This works quite well.
The next step would be:
- Write a cocoon generator in order to generate xml including all
logged in users. Or are there other possiblities to make the info
available to the sitemap?
I'd rather implement the logic in a separate component.
In 1.2, the data generated by this component could indeed be presented
using a generator.
In 1.4, I'd recommend to implement a usecase:
http://lenya.apache.org/1_4/reference/usecase-framework/index.html
This way you get a framework for the GUI handling and it fits nicely
into the overall architecture. A generator would just add complexity,
I'd rather pass the user info directly from the session-analyzation
component to the JX template.
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]