CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Java

 performing a redirect on page beforeShow

Print topic Send  topic

Author Message
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
View profile  Send private message
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
View profile  Send private message
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
View profile  Send private message
kuhbrille

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

thank you to both of you,

now it works.

Roland
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 http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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