I have made an jsp/servlet application to manage appointments.
As an extra:
I am making a FLEX (flash) interface In Adobe flash builder, to manage these appointments with drag and drop functions etc..
But I have a problem: Is it possible to communicate in flash with javaServlets?
Maybe I have to export all my arraylists and parameters to arraycollections in flex (So I can build up my flash website with imported arraylists), or is there an easier way?
When I would make an appointment in flash, my servlet requires some parameters, is it possible to send them through?
I hope someone can help me, I have been googling this for hours. I haven't found a solution yet.
There was an earlier topic about this on javaranch, but the URL links they gave to help the guy out are all dead right now :'(
Assuming you are running the Flex app directly on top of the existing web application without adding a REST interface, here is some very simplistic code showing calling a web application through Flex:
Since you control the server, you can probably make sure the output is well formed XML, which would allow you to set the resultFormat to e4x and process it as an XML document.
The important thing is the answer to your question - you can see that on line 5 I am declaring a call to the HTTPService provided by Bing (because it is shorter to type than Google ) at http://www.bing.com/search. Then I pass the parameter "q" with the value "cheese" at line 7.
Joined: Aug 16, 2012
Ok thank you man, so you suggest to export the data from the servlet (arraylists with objects in it) to XML.
And then import XML to Flex, is this the proper way to do it?
author and jackaroo