现在的位置: 首页 > 综合 > 正文

FLEX嵌入JSP中

2012年08月07日 ⁄ 综合 ⁄ 共 549字 ⁄ 字号 评论关闭

1.下载地址:http://opensource.adobe.com/wiki/display/flexsdk/downloads

或直接下载这个 Flex Compiler Modules:FlexModule_j2ee.zip

2:把webtier.war解压 替换原来工程下的WEB-INF,META-INF

 
3:如果SERVER开着的话,重启.
4:可以在JSP文件中写FLEX代码了!
 
===================== test.jsp START =====================
<%@ taglib uri="FlexTagLib" prefix="mm" %>
<%@ page contentType="text/html; charset=utf-8" %>
<html>
This is html powered by jsp<br>
<mm:mxml source="MainApp.mxml" width="100%" height="100%">

</mm:mxml>
</html>
===================== test.jsp End =====================
这个例子非常简单就是将原来写好的MXML文件嵌入到JSP中.MainApp.mxml可以改成你需要嵌入的FLEX文件.

   

【上篇】
【下篇】

抱歉!评论已关闭.