0

How to access servlet's session variable inside the zscript.

asked 2009-08-01 17:10:45 +0800

Dhanapalan gravatar image Dhanapalan
159 2

Hi,

I want to set the HTTPSession variable in the servlet, and the the same session variable i want to use in my zul pages. how can i achieve this?

Kindly respond me..

Regards,
Sunil Kumar Dubey

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2009-08-02 06:04:28 +0800

mjablonski gravatar image mjablonski
1284 3 5
http://www.jease.org/

You can get the current ZK-Session via:

org.zkoss.zk.ui.Sessions.getCurrent()

If you'll need the native session of your web-app-container, you can use:

org.zkoss.zk.ui.Sessions.getCurrent().getNativeSession()

HTH, Maik

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-08-01 17:10:45 +0800

Seen: 359 times

Last updated: Aug 02 '09

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More