Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to pass jsp values to flash?

 
chaitanya karthikk
Ranch Hand
Posts: 806
Java MySQL Database Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody, I am Chaitanya, I need to pass values from jsp to flash. Anyone knows that?

Thank you all in advance.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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.
 
chaitanya karthikk
Ranch Hand
Posts: 806
Java MySQL Database Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 806
Java MySQL Database Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Re-read my earlier reply - specifically the link I provided.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic