0

How do I get the HttpServletRequest?

asked 2009-03-30 15:01:44 +0800

OverFlo123 gravatar image OverFlo123
63 5

I need to check with every request if a Parameter in the Request has changed.
How can I access the HttpServletRequest in my JavaController (GenericAutowireComposer)

I tried Executions.getCurrent().getParameter("CID") but its always null.

is there another implicit ZK Objekt?

any suggestions?


florian

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2009-03-30 15:10:12 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

have a try with

Session s= org.zkoss.zk.ui.Sessions.getCurrent();
System.out.println("Session----->>>"+s);
s.setAttribute("username",user.getValue());

link publish delete flag offensive edit

answered 2009-03-31 00:50:15 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

Hi Florian,

Please take a look at the API Execution#getNativeRequest()

/Jumper

link publish delete flag offensive edit

answered 2009-04-01 08:31:40 +0800

OverFlo123 gravatar image OverFlo123
63 5

ok this seems to work:

String id = Executions.getCurrent().getParameter("ID");


flo.

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-03-30 15:01:44 +0800

Seen: 1,875 times

Last updated: Apr 01 '09

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