ok, i've found a way to pass data back froma servlet. Since the project is in demo stage I'm using simple "PrintWriter out" object; it should be sufficient for the time being. Still can somebody suggest a better way of returning data from java servlets?
Does the Printwriter.out really helped?
For FileReference, there is no such method to capture the response from servlet.
If we use, URLLoader then we can get the data property, where we can set the response, but, how to deal with FileReference?
Yes, got it.
Need to use Printwriter.out and in Flex on complete use event:DataEvent
then, event.data will have the information of Printwriter.out.
great...thanks a lot.
Memory is fuzzy on this but either getWriter or getOutputStream from the ServletResponse (latter for binary, depends on application - for example streaming a pdf back).