aspose file tools*
The moose likes Flex and the fly likes Flex and jsp communication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Flex
Bookmark "Flex and jsp communication" Watch "Flex and jsp communication" New topic
Author

Flex and jsp communication

Devendra Thomare
Greenhorn

Joined: Dec 13, 2008
Posts: 15
Hello ,
I am new to Flex and making web application using Flex since impressed from flex Rich UI

but the problem is

1. I make a request from browser it goes to servlet and from there to my jsp page
2. in my jsp page i have embedded .swf file as below

<div id="Tia">
<!-- Original HTML table here-->
</div>
var so = new SWFObject("Myform.swf", "Tia", "800", "800", "8", "#336699");
so.write("Tia");

3. now i am able to show this flex UI
4. from flex UI i click on one of the button and it goes to my servlet again
i did that using
<mx:HTTPService id="service" url="http://localhost:8084/FTPApplication/flexpage" result="resultHandler(event)" fault="faultHandler(event)" method="GET" showBusyCursor="true" resultFormat="text">

Here problem is control again comes to my callback function resultHandler

is there any way that response from servlet will go to different jsp .?

SCJP 88% SCWCD 88%SCBCD 88%
Dinesh Kumar Durairaj
Greenhorn

Joined: Dec 10, 2008
Posts: 5

Try this API ExternalInterface. You can use it to call java script communicate with Actionscript and vice versa


Start from scratch and keep on scratching..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Flex and jsp communication