发表时间:2009-05-06
最后修改:2009-05-06
之前也发过一个帖子http://fykyx521.iteye.com/admin/blogs/375287
使用方式下载weither.war, 找不到,在这下载
http://www.eb163.com/club/thread-3214-1-3.html(顺便宣传
,20mb太大了)
使用方式同blazeds.war一样(我觉得就是blazeds只不过换了个war)
1.new FlexProject 叫jsp_flex 会生成一个jsp_flex.mxml,jsp页面会用到
2.选择一个j2ee,为了测试选择在浏览页面时编译
3. 选择一个tomcat 如果运行报classCase http://fykyx521.iteye.com/admin/blogs/379618
让你选择一个war,你找到weither.war
4.一直点下一步,
5.属性-》myeclipse——》add Web jar包,取消选中那个生成web.xml,因为之前已经生成一次
新建个jsp如下
2.手动方式,吧weither.war解压,所有东西先拷贝到web-inf下
然后 添加web需要的jar包,新建jsp如下
<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%@taglib uri="FlexTagLib" prefix="mm" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'index.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<mm:mxml>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Text text="Hello World two" />
</mx:Application>
</mm:mxml>
上边或下边两种方式只能为一种,否则可能报空指针
<%-- <mm:mxml source="jsp_flex.mxml"></mm:mxml>--%>
</body>
</html>