Expand my Community achievements bar.

Getting the values from Servlet

Avatar

Level 3
Hi EveryOne,

I have done one thing using Flex,i have send the parmeters
from flex to servlet using HttpService and in the servlet i
captured them and used them.Now what i want is i have to capture
the values from servlet to flex .

Response content in servlet is set to text/xml,any one please
give me the idea how to do thsi or please send me some code to do
this.

{Sorry for my English} Thanks,

Namala.
1 Reply

Avatar

Level 2
Hi,



You have to handle the result event of the HTTPService
component. In the result handler you will have access to the
ResultEvent object which will contain the response from the server
in the "result" property. Please visit the URL below for more
details on how to handle result from the server.




http://livedocs.adobe.com/flex/3/html/data_access_6.html#235586



Hope this helps.