Hi Anas,

After you've logged in via your JSP login page you'll have an authenticated 
HttpSession on the server. If you then visit an mxml app hosted within the same 
web application (under the same context root) any remoting/messaging/data 
service interaction the mxml app has with the server will use this same 
authenticated session as long as the mxml app is contacting the server over an 
AMF or HTTP channel.

If you want to display specific info about the logged in user in the mxml app, 
the simplest route would be to use RemoteObject to request it from the server. 
You'd just need to write a simple POJO that looked up the info you wanted from 
the current authenticated server session.

Best,
Seth 

________________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Anas 
Mughal
Sent: Thursday, August 24, 2006 8:21 AM
To: [email protected]
Subject: [flexcoders] Passing data from JSP to Flex

I am new to Flex. Could someone help me with the following question.
 
We have a struts-based application that we are gradually porting over to Flex. 
Currently, the user authentication (login screen) is done via a JSP page. A new 
module of the application is wrriten in Flex.
 
We would like to pass the logged-in user information to Flex. How should we do 
that?
 
Thank you very much for your kind assistance.
--
Anas Mughal
  
________________________________________
Get your email and more, right on the new Yahoo.com 
 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to