Hi, What you need to do is to keep track of the language selection once it is done in your Flex app, if I understand correctly. So a simple example that I can give you is that you will have a global variable that will hold this language selection, like so:
<mx:Application> <mx:Script> var language:String; ... language = "en"; </mx:Script> </mx:Application> But as your app gets complex you will need to hold this data in some AS class called a ModelLocator (you might have read about), so it might look like so: public class ModelLocator { public var language:String; } then in some other MXML/AS, you do: var myLanguage:String = ModelLocator.language; Hope that helps. Dimitrios Gianninas Optimal Payments Inc. -----Original Message----- From: flexcoders@yahoogroups.com on behalf of jonathan_merey Sent: Tue 10/3/2006 1:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Problem with Session Java/Flex Hi, I have an application in which i have to threat the identification. In this identification I want to record some information in Session like login. The problem is that I don't know how. With a traditional application in Java with struts I know but in this case no. Here is my java code for the moment : public class LoginAction { public LoginAction(){} public int login(String login, String pass) { request.getSession().setAttribute("login", login); return 0; } } I don't know how get the HttpServletRequest request. I don't know to how do in Flex to record some information in this same session and how get them. Indeed, I have to threat different languages. When someone click on french or english at identification step he must stay in french or english after so how record information in session and how get them in flex because I think this must be done in flex this time. Here is the flex code : private function changeLanguage(language:String):void { if (language == 'En') { locale = localeEn; } if (language == 'Fr') { locale = localeFr; } } Thank you. -- 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>>