Hi,

You definitely want to hold the data in some singleton model class (like 
ModelLocator). However I dont know why you are holding this data in the 
server-side session. Is it because you have JSP pages as part of the web site, 
since its been around for a while? If thats the case, then it makes sense.

Dimitrios Gianninas
Optimal Payments Inc.



-----Original Message-----
From: flexcoders@yahoogroups.com on behalf of jonathan_merey
Sent: Fri 10/6/2006 11:34 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Get Attribute of FlexSession in Flex
 
Because I need it after; I need the role (Administrator/User)too but I
think I will put these information in a Singleton ActionScript class.
Do you think it s better ?

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , 
"Dimitrios Gianninas"
<[EMAIL PROTECTED]> wrote:
>
> Question is why are you putting in the session? For the simple
answer, just create a method on a java class that will retrieve that
object and call it from Flex, like so:
> 
> public getLogin() {
> return FlexContext.getFlexSession().getAttribute("user");
> }
> 
> Dimitrios Gianninas
> RIA Developer
> Optimal Payments Inc.
> 
> 
> ________________________________
> 
> From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>  
> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> ]
On Behalf Of jonathan_merey
> Sent: Thursday, October 05, 2006 10:23 AM
> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] Get Attribute of FlexSession in Flex
> 
> 
> 
> I put data in FlexSession like that in my Java code : 
> 
> FlexContext.getFlexSession().setAttribute("user", login);
> 
> Now I want to know how to get them in my Flex code if there is a way
to have them with Flex Actionscript code.
> 
> 
> 
> 
> -- 
> 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.
>



 



--
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/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> 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/
 

<<winmail.dat>>

Reply via email to