Part of Flex MXML Code :
import mx.core.FlexGlobals;
protected function buildModel():void
{
// to access thequery string param passed from jsp file
roomURL = FlexGlobals.topLevelApplication.parameters.roomURL;
authToken = FlexGlobals.topLevelApplication.parameters.authToken;
}
can i access < param > in form of query string from JSP code
________________________________________________________________
JSP Code below passsing 2 Param roomURL & authToken :
<script type="text/javascript">
function loaded() {
<%
if (token != null) {
System.out.print("Room URL IS:-> " + roomURL + "\n");
System.out.print("Token: -> " + token);
%>
win = window.open(
'meetingModule.html?roomURL=<%= roomURL %>&authToken=<%= token %>',
'_blank',
'left=20,top=20,width=800,height=600,toolbar=1,resizable=1');
<%
}
%>
}
</script>
Views
Replies
Total Likes
I am not sure of what exactly the question is.
Are you asking about how to access variables in JSP ? Or how to pass a parameter from an HTML page to a SWF ?
Here:
'meetingModule.html?roomURL=<%= roomURL %>&authToken=<%= token %>',
you are simply passing variable to the HTML page. From there you need to use javascript to parse the query string and pass the values to your SWF.
If you look at the ExternalAuthentication examples they all do something similar.
Views
Replies
Total Likes
Well, Raff if could see the Page 236 which says, When a user requests this application with the myName and myHometown parameters defined as
flashVars properties or as query string parameters, Flex displays their values in the Label controls.
I have done the same but through JSP calling HTML Page that has my Flex App Embedded in it.Please see my first post on this discussion to know how I have done that which eventually failed.
Views
Replies
Total Likes
Oops forget to mention the book. Using Flex 4 PDF Document from Adobe.
Views
Replies
Total Likes
Views
Likes
Replies