0

Manipulating the URL

asked 2009-12-16 02:21:52 +0800

Jon gravatar image Jon
45

Hi all,

is there any possibiliy to manipulate the URL of the Browser?
An example:
User calls index.zul?myParameter=xyz
And i want to remove the "myParameter" through server code.

Regards,

Jonas

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2009-12-16 19:02:00 +0800

joylo0122 gravatar image joylo0122
688 1
www.zkoss.org

@Jon

Hi Jon, you can use (HttpServletRequest) Executions.getCurrent().getNativeRequest() to get a HttpServletRequest in your filter,
and use it as the javax.servlet.http.HttpServletRequest.

HttpServletRequest.getRequestURL maybe the function you need (or you can try some other methods).

/Joy

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-12-16 02:21:52 +0800

Seen: 311 times

Last updated: Dec 16 '09

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