CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.

YesSoftware Forums -> CodeCharge Studio -> Java

 performing a redirect on page beforeShow

Print topic Send  topic

Author Message

Posts: 11
Posted: 03/27/2008, 8:00 AM


we have to perform a redirect in the page beforeShow event.
How to do it?

(using java servlets)

View profile  Send private message

Posts: 1679
Posted: 03/27/2008, 12:01 PM

From Helpfile:
Quote :
CodeCharge Studio

setRedirectString Method (Java)
Applies to
Page Object
public void setRedirectString(java.lang.String redirect);
Name Type Description
redirect String The URL string for redirect.

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:
View profile  Send private message

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)


good luck
Unidad de TI
Sistemas Administrativos y Financieros
Direccion Nacional de Informática
View profile  Send private message

Posts: 11
Posted: 03/29/2008, 12:38 AM

thank you to both of you,

now it works.

View profile  Send private message

Add new topic Subscribe to topic   

These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit

Web Database

Join thousands of Web developers who build Web applications with minimal coding.

Home   |    Search   |    Members   |    Register   |    Login

Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by  and YesSoftware, Inc.