This may be a stupid question, but if your flex app is wrapped in in a jsp file (using something like <mm:mxml source="..."/>) can you access variables in request scope? Or can you pass selected variables into a flex app?
I got around it by having initialize="callHttpServiceToGetInitData()" in my <mx:Application>, but this seemed like a bit of a code smell. cheers Dan Matt Chotin wrote: > TADA! > http://livedocs.macromedia.com/flex/15/flex_docs_en/00002247.htm :-) > > > > Matt > > > > ------------------------------------------------------------------------ > > *From:* cazzaran [mailto:[EMAIL PROTECTED] > *Sent:* Monday, April 04, 2005 6:23 PM > *To:* flexcoders@yahoogroups.com > *Subject:* [flexcoders] How to get access to HttpSession in a > stateful-class > > > > > I have some remote business delegates that are stateful. Is there a > way to get access to the session that they are being held in? > > For example, I have a UserDelegate that handles user based business > logic for the current logged in user, and it maintains a member > variable of the user so I don't need to keep passing User stuff over > the network. I also have a GroupDelegate, that obviously handles Group > stuff. I need to be able to access the User variable in the > UserDelegate so I can figure out some information about the user > before I perform the Group operations (i.e. authorization, etc). My > problem is that my Delegates are just POJOs, and so have no knowledge > of requests, or sessions. Is there a way to get to the session that > the stateful-class is being held in, or get at the request that is > associated with that session? > > I know I could pass User information over the wire to my > GroupDelegate, but this is inefficient, since the data's right there > in memory on the server. > > Any help is appreciated! > > > > > > ------------------------------------------------------------------------ > *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] > <mailto:[EMAIL PROTECTED]> > > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of > Service <http://docs.yahoo.com/info/terms/>. > > 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/