kuhbrille
Posts: 11
|
Posted: 03/27/2008, 8:00 AM |
|
Hello,
we have to perform a redirect in the page beforeShow event.
How to do it?
(using java servlets)
Roland
|
|
|
wkempees
Posts: 1679
|
Posted: 03/27/2008, 12:01 PM |
|
From Helpfile:
Quote :
CodeCharge Studio
--------------------------------------------------------------------------------
setRedirectString Method (Java)
Applies to
Page Object
Syntax
public void setRedirectString(java.lang.String redirect);
Parameters
Name Type Description
redirect String The URL string for redirect.
Description
This method specifies the URL string for redirect. The redirection occurs before the On Initialize View event is called. It is recommended to set variable values in the After Initialize event or any submit processing event of page components.
Is that what you need?
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
|
|
siap
Posts: 7
|
Posted: 03/28/2008, 1:47 PM |
|
i don´t redirect in BeforeShow event, try redirect in After Initialze event
i used this code to redict
String name=(String)SessionStorage.getInstance(e.getPage().getRequest()).getAttribute("name");
String otraPagina = "/SiapWeb/EncriptarUrl.jsp";
String MiPagina = e.getPage().getRequest().getRequestURI();
if(name == null)
{
e.getPage().setRedirectString(otraPagina+"?MP="+MiPagina);
}
good luck
Javier
_________________
Unidad de TI
Sistemas Administrativos y Financieros
Direccion Nacional de Informática
|
|
|
kuhbrille
Posts: 11
|
Posted: 03/29/2008, 12:38 AM |
|
thank you to both of you,
now it works.
Roland
|
|
|
|