rmbrowngr
Posts: 12
|
Posted: 03/21/2005, 3:08 AM |
|
How anyone know how I can dynamically add parameters in an Include Page?
|
|
|
mrachow
Posts: 509
|
Posted: 03/21/2005, 8:04 AM |
|
I'm not quite sure but I think that cannot work.
Pragmatically spoken an include page will lose it's identity just at the moment it is included by another page. So even if there is a CCgetParamter for example this would work on the parameters of the inclucing page.
I think the server first builds up a page consisting of the including page and all included pages. Only just after that any processing of the complete script file will start.
_________________
Best regards,
Michael |
|
|
rmbrowngr
Posts: 12
|
Posted: 03/21/2005, 8:14 AM |
|
What I realy won't to do is pass a parameter to the included page from the parent page.
At the moment I set a session variable to do this, which isn't a safe method.
Richard
|
|
|
sbwtxj
Posts: 27
|
Posted: 03/21/2005, 6:23 PM |
|
Of course,
I always use included page before show/after initation event e.getPage().getHttpGetParams().getParameter("variable name") to retrieve the URL variable value.
I don't know if it can help you.
Regards,
shanbw
_________________
----------------
Regards,
shanbw |
|
|
David A. Lee
|
Posted: 03/30/2005, 4:57 AM |
|
Try setting a Request attribute instead of a session attribute
Request attributes only live for the duration of the single HTTP request.
"rmbrowngr" <rmbrowngr@forum.codecharge> wrote in message
news:9423ef2fab0565@news.codecharge.com...
> What I realy won't to do is pass a parameter to the included page from the
> parent page.
>
> At the moment I set a session variable to do this, which isn't a safe
method.
>
> Richard
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|