On Thu, Dec 29, 2011 at 7:15 PM, Kiran Badi <ki...@poonam.org> wrote:

> One final doubt can I have one servlet similar to listener which will listen
> to the clicks, store the path info,validate the sessions and then push that
> data to some jsp and I can include that jsp in my all pages.Do I need to
> implement this exactly the way we implement httpsession listener ?

I'm not sure what you mean by "listen to the clicks", but you have no
way to know (other than JavaScript/AJAX) what the client is doing;
the simplest approach to this problem is to use a Filter to push each
request (or component, e.g. pathInfo) into an Array stored in session.

Then yes, you can format and expose the data via a page fragment
and/or a custom tag.

-- 
Hassan Schroeder ------------------------ hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to