0

URL Parameter

asked 2006-03-30 08:31:27 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


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

By: oberinspector

Is it possible to pass parameters from the url to zscript to query the database?
E.g. to force the stories.zul to load the story from the db:

www.mysite.com/stories/1234

...and vice versa ...when my db query offers me story 1234 to select, can i generate such an url as mentioned above...

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2006-03-30 09:00:03 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


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

By: tomyeh

Use query string:

.../stories?id=1234

Then, you could place a zul file called index.zul under /stories. In this file, you do

EL: ${param.id}

zscript: getDesktop().getExecution().getParameter("id")

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-03-30 08:31:27 +0800

Seen: 1,773 times

Last updated: Mar 30 '06

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