This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Flex
Bookmark "Flex and jsp communication" Watch "Flex and jsp communication" New topic

Flex and jsp communication

Devendra Thomare

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-->
var so = new SWFObject("Myform.swf", "Tia", "800", "800", "8", "#336699");

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 .?

Dinesh Kumar Durairaj

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:
subject: Flex and jsp communication
It's not a secret anymore!