Anas-
  Please see the HTTPService class. This is the code from the API docs. The "url" attribute would the URL link to your server side java Delegate. If you are using FDS (Flex Data Services), then you can actually return your java domain objects, otherwise, you'll have to return XML or Strings.

Notice how the Datagrid is bound to the XML that the httpservice returns : feedRequest.lastResult

<?xml version="1.0"?>
<!-- Simple example to demonstrate the HTTPService tag. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
creationComplete="feedRequest.send();">

<!-- The url property specifies the location of the requested file,
in this case the RSS 2.0 feed of Matt Chotin's blog.
As of this writing, the URL was still valid, but you should
check to make sure it hasn't changed.
You should use the latest RSS 2.0 URL listed on the right side of
the blog at http://www.adobe.com/go/mchotinblog. -->

<mx:HTTPService
id="feedRequest"
url=""
useProxy="false" />

<mx:Panel title="HTTPService Example" height="75%" width="75%"
paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10">

<mx:DataGrid id="dgPosts" height="50%" width="75%"
dataProvider="{feedRequest.lastResult.rss.channel.item}">
<mx:columns>
<mx:DataGridColumn headerText="Posts" dataField="title"/>
<mx:DataGridColumn headerText="Date" dataField="pubDate"/>
</mx:columns>
</mx:DataGrid>

<mx:TextArea height="50%" width="75%" htmlText="{dgPosts.selectedItem.description}"/>

</mx:Panel>
</mx:Application>


Anas Mughal <[EMAIL PROTECTED]> wrote:
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


Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail. __._,_.___





--
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
Software development tool Software development Software development services
Home design software Software development company


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to