I want to retrieve data from a Database and display inside a datagrid in a Flex web application. The way I'm thinking of doing it is :
- Send the Query data from .mxml file to the .jsp page using HTTPService.
- In the .jsp, connect to the database and retrieve the data using select statements.
- send the results back to the .mxml using HTTPService.
I know what to use but I have an ambiguity. In the (.mxml) I use xxx.send() to send the data. What do I use in the (.jsp) to send it back ?
Also, I know that I should store the results in an XML in the .jsp file, but how to do that ?