flexǶÈëjspÖÐÓöµ½µÄÄÑÌ⣿
ÒѾ×öºÃµÄÒ»¸öJ2EEÏîÄ¿£¬ÏëÓ¦ÓÃflexÖеÄͼ±í£¬ËùÒÔÏÖÔÚµÄÊ×ÒªÎÊÌâ¾ÍÊÇÈçºÎ°ÑflexǶÈëµ½jspÖУ¬°´ÕÕÍøÉϽéÉܵĽâ¾ö·½°¸×öÁ˸öС²âÊÔ£º
<%@ taglib uri="FlexTagLib" prefix="mm"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>jspÖÐǶÈëflex</title>
</head>
<body>
<h2>jspÖÐǶÈëflex´úÂë</h2>
<mm:mxml>
<mx:Application width="300" height="200" xmlns:mx="http://www.macromedia.com/2003/mxml">
<mx:Text text="²âÊÔ"/>
</mx:Application>
</mm:mxml>
</body>
</html>
ÔÚweb.xmlÖÐÌí¼ÓÁË£º
<jsp-config>
<taglib>
<taglib-uri>FlexTagLib</taglib-uri>
<taglib-location>/WEB-INF/lib/flex-bootstrap-jsp.jar</taglib-location>
</taglib>
</jsp-config>
ÐèÒªµÄjar°üÒ²µ¼½øÀ´ÁË£¬ÔËÐÐÒ»ÏÂÈ´Å׳öÁË¿ÕÖ¸ÕëÒì³££¡
£¨flex-bootstrap-jsp.jar¡¢flex-webtier-jsp.jar¡¢flex-webtier.jar¡¢flex-bootstrap.jar£©
java.lang.NullPointerException
at flex.bootstrap.BootstrapTag.<init>(BootstrapTag.java:39)
at flex.bootstrap.BootstrapBodyTag.<init>(BootstrapBodyTag.java:28)
at flex.webtier.server.j2ee.jsp.MxmlTagImpl.<init>(MxmlTagImpl.java:2)
²»ÖªµÀÄĶù³öÁËÎÊÌ⣬ºÜÊÇÓôÃÆ£¬Ï£ÍûÓд˾ÑéµÄÅóÓÑÃÇÄܹ»Ö¸µã
Ïà¹ØÎĵµ£º
1. chart£º×ÜÌå¿ØÖÆ
2.
series£º¶¨ÒåʲôÑùµÄÊý¾ÝÀ´Õ¹Ê¾£¬x,yÖá·Ö±ðÏÔʾʲôÊý¾Ý¡£ËüÊÇ°üº¬ÏàÓ¦µÄseriesItemµÄArray¡£SeriesItem·â×°Á˼«Öµ
µã£¬Ìî³ä·½Ê½£¬xyÊý¾ÝµÈ¡£
3. series ÖÐdisplayNameÊôÐÔ¿ ......
ÖÐÎÄÔÚÏß°ïÖúÎĵµ£ºhttp://livedocs.adobe.com/flex/3_cn/langref/
http://examples.adobe.com/flex3/componentexplorer/explorer.html¡£
ÆäËûÍøÕ¾£º
http://bbs.actionscript3.cn
http://www.airia.cn
http://www.anyflex.cn/bbs
http://www.5uflash.com/flex-air
http://www.52ria.com
http:// ......
flash.util.TimerÀà
flash.util.TimerÀàÔÊÐíͨ¹ýÌí¼Óʱ¼äʼþ»òÑÓʱÀ´µ÷Ó÷½·¨¡£Í¨¹ýTimer¹¹ÔìÆ÷´´½¨ÊµÀý¶ÔÏ󣬴«µÝÒ»¸öºÁÃëÊý×Ö×÷Ϊ¹¹Ôì²ÎÊý×÷Ϊ¼ä¸ôʱ
¼ä£¬ÏÂÃæµÄÀý×ÓʵÀý»¯Ò»¸öTimer¶ÔÏóÿ¸ö1ÃëÖÓ·¢³öʼþÐźţº
var timer.Timer = new Timer(1000);
......
/**=========main.mxml=========*/
/* µ¼³öexcel */
private function exp():void{
if(dgEnterprise.dataProvider==null){
Alert.show("Êý¾ÝΪ¿Õ£¬ÎÞ·¨µ¼³öexcel","ÓÑÇéÌáʾ");
}else{
ExportExccel.loadDGInExcel(dgEnterprise,"/ssfxSystem/excelexport.jsp?tableName=ÆóÒµÐÅÏ¢");
}
}
/**===== ......