0

JSP Session and ZK Session

asked 2010-10-21 21:55:12 +0800

zkIsay gravatar image zkIsay
21

Hi everybody (I'm sorry, my english is very bad :xd)

Can you help me ?
how I share attributes between Jsp session and zk session .
My app is developed in JSP. I want to get session's attributes of same way or similary ( request.getSession().getAttributes("object"); )

container.zul

<borderlayout id="main" apply="org.net.sftg.ComposerMenu" xmlns:h="http://www.w3.org/1999/xhtml">
<category forEach="${main$ComposerMenu.categoriasMenu}" id="${each.id}" src="${each.icon}" label="${each.label}"/>
</boderlayout>


in class ComposerMenu

public C[] getCategoriasMenu() {
//getRequest........
}

thanks

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2010-10-21 22:06:58 +0800

ashishd gravatar image ashishd flag of Taiwan
1972 6

Hi zkIsay,
Either use Executions.getCurrent().getSession().getNativeSession() or Sessions.getSession.getNativeSession()

link publish delete flag offensive edit

answered 2010-10-21 22:52:27 +0800

zkIsay gravatar image zkIsay
21

thank you very much ashishd, it was the solution.....


thanks
thanks
thanks

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: 2010-10-21 21:55:12 +0800

Seen: 747 times

Last updated: Oct 21 '10

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