0

JSP implicit objects

asked 2008-11-22 07:13:40 +0800

jyluo gravatar image jyluo
147 1 1

What is the proper way to pass implicit JSP objects such as pageContext to ZUL components? I am currently using requestScope, but not sure if it's it.

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2008-11-22 15:43:00 +0800

dennis gravatar image dennis
3679 1 6
http://www.javaworld.com....

do you use .zul? zul is not jsp so there is no pageContext in .zul .

link publish delete flag offensive edit

answered 2008-11-22 17:00:56 +0800

jyluo gravatar image jyluo
147 1 1

updated 2008-11-22 17:04:50 +0800

Sorry, I mean components specified by ZK JSP tags. I have some Java code that extend and compose certain ZK components (via "use" and "apply"), and I want to use some of the JSP implicit objects in the Java code.

link publish delete flag offensive edit

answered 2008-11-26 08:15:24 +0800

PeterKuo gravatar image PeterKuo
481 2

Use requestScope is a right workaround.
It's a matter of servlet lifecycle and ZK lifecycle.
Currently, there is no other suggested way to get pageContext directly in ZK JSP.
You can post it to feature request.

link publish delete flag offensive edit

answered 2008-11-26 14:39:21 +0800

dennis gravatar image dennis
3679 1 6
http://www.javaworld.com....

why do you want to get pageContext?
maybe there are another APIs that you could use in ZK to instead of pageContext

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: 2008-11-22 07:13:40 +0800

Seen: 320 times

Last updated: Nov 26 '08

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