File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 800

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: 800

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: 800

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to pass jsp values to flash?
 
Similar Threads
Retaining Retaining Drop down value
passing values from jsp to java
Flash and JSP?
pass the the values from one jsp to another jsp
Cache Problem