Hi,
 
Basically what you want to do is that the user will do some sort of action and 
if you have flex using standard J2EE authentication then that remote call will 
fail and your fault method you can catch that specific exception and then 
redirect the user to the login page:
 
if( evt.fault.faultCode == "Client.Authentication" ) {
    var req:URLRequest = new URLRequest( "login.jsp 
<http://support.optimalpayments.com/REPOSITORY/WinSCP_Overview_Merchant.pdf> " 
);
    navigateToURL( req, "_blank" );   }
   else {
    responder.fault( event ); 
   }
 
Dimitrios Gianninas
Development Team Lead
Optimal Payments Inc.
 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manu 
Dhanda
Sent: Wednesday, September 19, 2007 6:12 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Redirect to login page: from flex to jsp in struts




Hii

Can someone tell me how do i unload flex and load/redirect to login page,
once the session is over.

Currently, when the session is over. Obviously I cannot access any data from
the server side. But my flex GUI will still remain there and it doesn't
unload from the screen.

Can anyone guide me in the right direction.

Thanks.
-- 
View this message in context: 
http://www.nabble.com/Redirect-to-login-page%3A-from-flex-to-jsp-in-struts-tf4480003.html#a12774460
 
<http://www.nabble.com/Redirect-to-login-page%3A-from-flex-to-jsp-in-struts-tf4480003.html#a12774460>
 
Sent from the FlexCoders mailing list archive at Nabble.com.



 

-- 
WARNING
-------
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--------------
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.

Reply via email to