<% @ page session = " true "   %>  
None.gif
<% @ taglib uri = " FlexTagLib "  prefix = " mm "   %>  
None.gif
<%  
None.gif  Integer num 
=   new  Integer( 22100 ); 
None.gif  session.putValue(
" num " ,num); 
None.gif
%>  
None.gif
< html >< body >  
None.gif
< h3 > Introduction </ h3 >  
None.gif
< p > This is an example of writing MXML in a JSP. </ p >  
None.gif
< h3 > My App </ h3 >
None.gif
< mm:mxml border = " 1 " >  
None.gif  
< mx:Application xmlns:mx = " http://www.macromedia.com/2003/mxml "  creationComplete = " myService.send(); " >  
None.gif    
< mx:HTTPService url = " test.jsp;jsessionid=<%=session.getId()%> "  id = " myService " />  
None.gif
< mx:Label text = " <%= session.getAttribute( " num " ) %> " />  
None.gif    
< mx:Label text = " <%= session.getId() %> " />  
None.gif  
</ mx:Application >  
None.gif
</ mm:mxml >< br >  
None.gif
</ body >  
None.gif
</ html >