0

how to get the ServletContext ?

asked 2006-01-10 16:28:12 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3514999

By: nobody

Hello
I'd like to get the javax.servlet.ServletContext of a page, and couldn't find any means in Desktop nor Execution nor Session... how can I get it?
Thanks.

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2006-01-10 16:40:44 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3515006

By: tomyeh

com.potix.zk.ui.WebApp is a mimic of ServletContext.
Refer to User Guide for details.

The reason to isolate HTTP's session, servlet context... is that ZK will be ported to client without browsers.

link publish delete flag offensive edit

answered 2006-01-11 09:00:47 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3516622

By: nobody

thanks for pointing out WebApp.

Is there any way of retrieving easily execution-time 'text' parameters for the WebApp (e.g. using the <context-param> element of WEB_INF/web.xml) ?

link publish delete flag offensive edit

answered 2006-01-11 09:46:32 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3516686

By: tomyeh

No, please put it to feature request.

link publish delete flag offensive edit

answered 2007-12-06 18:03:21 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4662398

By: frankiec

As many hook the ServletContextInit (pools, cache's, threads), can you briefly describe what WebApp does to isolate the presentation layer?

I'm developing something where during ServletContext init I initialize/configure for the web app space.

I hook into WebAppInit for ZK specific settings, etc. It would be useful to know what things are more "portable" than others given the multi-medium presentation types you now support.

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: 2006-01-10 16:28:12 +0800

Seen: 246 times

Last updated: Dec 06 '07

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