<%
@ page session
=
"
true
"
%>
<%
@ taglib uri
=
"
FlexTagLib
"
prefix
=
"
mm
"
%>
<%
Integer num
=
new
Integer(
22100
);
session.putValue(
"
num
"
,num);
%>
<
html
><
body
>
<
h3
>
Introduction
</
h3
>
<
p
>
This is an example of writing MXML in a JSP.
</
p
>
<
h3
>
My App
</
h3
>
<
mm:mxml border
=
"
1
"
>
<
mx:Application xmlns:mx
=
"
http://www.macromedia.com/2003/mxml
"
creationComplete
=
"
myService.send();
"
>
<
mx:HTTPService url
=
"
test.jsp;jsessionid=<%=session.getId()%>
"
id
=
"
myService
"
/>
<
mx:Label text
=
"
<%= session.getAttribute(
"
num
"
) %>
"
/>
<
mx:Label text
=
"
<%= session.getId() %>
"
/>
</
mx:Application
>
</
mm:mxml
><
br
>
</
body
>
</
html
>
![None.gif](https://i-blog.csdnimg.cn/blog_migrate/4f1150b881333f12a311ae9ef34da474.gif)
![None.gif](https://i-blog.csdnimg.cn/blog_migrate/4f1150b881333f12a311ae9ef34da474.gif)
![None.gif](https://i-blog.csdnimg.cn/blog_migrate/4f1150b881333f12a311ae9ef34da474.gif)
![None.gif](https://i-blog.csdnimg.cn/blog_migrate/4f1150b881333f12a311ae9ef34da474.gif)
![None.gif](https://i-blog.csdnimg.cn/blog_migrate/4f1150b881333f12a311ae9ef34da474.gif)
![None.gif](https://i-blog.csdnimg.cn/blog_migrate/4f1150b881333f12a311ae9ef34da474.gif)
![None.gif](https://i-blog.csdnimg.cn/blog_migrate/4f1150b881333f12a311ae9ef34da474.gif)
![None.gif](https://i-blog.csdnimg.cn/blog_migrate/4f1150b881333f12a311ae9ef34da474.gif)
![None.gif](https://i-blog.csdnimg.cn/blog_migrate/4f1150b881333f12a311ae9ef34da474.gif)
![None.gif](https://i-blog.csdnimg.cn/blog_migrate/4f1150b881333f12a311ae9ef34da474.gif)
![None.gif](https://i-blog.csdnimg.cn/blog_migrate/4f1150b881333f12a311ae9ef34da474.gif)
![None.gif](https://i-blog.csdnimg.cn/blog_migrate/4f1150b881333f12a311ae9ef34da474.gif)
![None.gif](https://i-blog.csdnimg.cn/blog_migrate/4f1150b881333f12a311ae9ef34da474.gif)
![None.gif](https://i-blog.csdnimg.cn/blog_migrate/4f1150b881333f12a311ae9ef34da474.gif)
![None.gif](https://i-blog.csdnimg.cn/blog_migrate/4f1150b881333f12a311ae9ef34da474.gif)
![None.gif](https://i-blog.csdnimg.cn/blog_migrate/4f1150b881333f12a311ae9ef34da474.gif)
![None.gif](https://i-blog.csdnimg.cn/blog_migrate/4f1150b881333f12a311ae9ef34da474.gif)
![None.gif](https://i-blog.csdnimg.cn/blog_migrate/4f1150b881333f12a311ae9ef34da474.gif)
转载于:https://blog.51cto.com/199608/205238