1

How to access GET request parameters

asked 2008-12-05 19:30:02 +0800

zacusca gravatar image zacusca
79 1 2

Hello!

I am developing an application which has as a feature the possibility of sending email to a specified email address. As a matter of fact, this email is a "confirmation email", meaning that it contains an address where the user must go in order to validate his account. The URL in that email looks something like this:

http://localhost:8082/confirm.zul?id=1228504330260

where the "id" is the database user ID. In my confirm.zul file, I want to access the "id" variable (as I understood, there are 2 ways of sending parameters in a html/jsp application...GET and POST...and this is the way GET sets the parameters in the request).

Could anyone tell me how to access the "id" parameter from "confirm.zul" (in a <zscript>...<zscript> method)?

Thanks in advance!

Radu

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2008-12-08 11:06:43 +0800

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

in creation phase,
String parm = execution.getParameter("id");

link publish delete flag offensive edit

answered 2009-01-28 20:09:00 +0800

zacusca gravatar image zacusca
79 1 2

Thanks man!

Worked like a charm :D

link publish delete flag offensive edit

answered 2009-04-05 16:02:35 +0800

sysmat gravatar image sysmat
72

How, can this work if there is no method getParameter for class execution

link publish delete flag offensive edit

answered 2009-04-05 16:08:02 +0800

YamilBracho gravatar image YamilBracho
1722 2

Check the java docs for Execution interface/class

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-12-05 19:30:02 +0800

Seen: 2,795 times

Last updated: Apr 05 '09

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