This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Flex and the fly likes How to pass jsp values to flash? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Flex
Bookmark "How to pass jsp values to flash?" Watch "How to pass jsp values to flash?" New topic
Author

How to pass jsp values to flash?

chaitanya karthikk
Ranch Hand

Joined: Sep 15, 2009
Posts: 806

Hi everybody, I am Chaitanya, I need to pass values from jsp to flash. Anyone knows that?

Thank you all in advance.


Love all, trust a few, do wrong to none.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

"JSP values" - what do you mean by this? Flash can make remote request that can be serviced by a Servlet, other than that your Flash application is hosted in an HTML page, so you can interact with your Flash component via Flash vars, or you can call into your Flash application via JavaScript.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
chaitanya karthikk
Ranch Hand

Joined: Sep 15, 2009
Posts: 806

JSP values means, the parameters, suppose that a servlet is sending a parameter named "uid", in jsp we write ${param.uid}.
I want the value in flash, suppose that a text filed component in there in flash named "txt", I want to display the uid in that component.

How can I do this?
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

If you are writing the value of these parameters out to your HTML page that includes the Flash application you probably need to use the flashvars parameter. Here is an example from the docs.
chaitanya karthikk
Ranch Hand

Joined: Sep 15, 2009
Posts: 806

Hi Paul, I don't want to do it using javascript. I want to pass the el parameters to it.

For example consider the code


When I am running this jsp page I am unable to get the employee id value in the flash's text input component.

How can I do this?
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Re-read my earlier reply - specifically the link I provided.
 
GeeCON Prague 2014
 
subject: How to pass jsp values to flash?