The JSP solution is a Flex 1.x
solution.
If you're using
Flex 1.x, here's an alternative to the jsp option below,
> Note: The above seems to require a compile for every
request for the page.
With a minor modification to the code, you can eliminate
the above issue - the flashvars are updated on every request but the page
doesn't recompile.
Use the flashvar tag to set a flashvar from the http
header. Access as flashvars in your mxml.
<flex.:mxml>
<mx:flashvar name="this_is_the_name_to_access_from_mxml"
value='<%= request.getHeader("XXX") %>'/>
... Insert your mxml here, be sure to declare
'this_is_the_name_to_access_from_mxml at the root level.
</flex:mxml>
- Cathy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, October 30, 2006 1:41 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Accessing HTTP headers from Flex Data Services
Hi, How can you access the HTTP header variables from within a Flex Data Services MXML application. The request variables are easily accessible through Application. HTTP headers variables?
This e-mail message and all attachments transmitted with it may contain legally privileged and/or confidential information intended solely for the use of the addressee(s) Thank you. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___ |
- [flexcoders] Accessing HTTP headers from Flex Data ... Dylan Schorer
- Re: [flexcoders] Accessing HTTP headers from F... carolyn . reid-bennett
- RE: [flexcoders] Accessing HTTP headers fr... Cathy Reilly
- RE: [flexcoders] Accessing HTTP headers from F... Dustin Mercer