J2EE¼¯³ÉFlex--MXML×é¼þǶÈëJSP_JAVA_±à³Ì¿ª·¢_³ÌÐòÔ±¾ãÀÖ²¿

ÖйúÓÅÐãµÄ³ÌÐòÔ±ÍøÕ¾³ÌÐòԱƵµÀCXYCLUB¼¼ÊõµØͼ
ÈÈËÑ£º
¸ü¶à>>
 
ÄúËùÔÚµÄλÖ㺠³ÌÐòÔ±¾ãÀÖ²¿ > ±à³Ì¿ª·¢ > JAVA > J2EE¼¯³ÉFlex--MXML×é¼þǶÈëJSP

J2EE¼¯³ÉFlex--MXML×é¼þǶÈëJSP

 2014/9/15 2:13:07  yangyangmyself  ³ÌÐòÔ±¾ãÀÖ²¿  ÎÒÒªÆÀÂÛ(0)
  • ÕªÒª£ºÒýÓÃÀûÓÃFLEX×é¼þǶÈëJSPÒ³ÃæÖв¢»ñÈ¡FLEX±äÁ¿Öµ´«µÝµ½JSP±äÁ¿£¬Ìá½»¸øºǫ́JAVAWebÓ¦ÓóÌÐò´¦Àí£¬±¾ÊµÀýÊǽ«FLEXNumeric»¬¶¯Öµ´«µÝ¸øJSPºǫ́¡£ÒÔÏÂÊǽ«FLEX¼¯³Éµ½J2EE˵Ã÷:********************************Introduction********************************TheFlexcompilermoduleforJ2EEapplicationserversisaWebApplicationaRchive
  • ±êÇ©£ºXML JS J2EE Flex
ÒýÓÃ
  ÀûÓÃFLEX×é¼þǶÈëJSPÒ³ÃæÖв¢»ñÈ¡FLEX±äÁ¿Öµ´«µÝµ½JSP±äÁ¿£¬Ìá½»¸øºǫ́JAVA Web

  Ó¦ÓóÌÐò´¦Àí£¬±¾ÊµÀýÊǽ«FLEX Numeric»¬¶¯Öµ´«µÝ¸øJSPºǫ́¡£

   ÒÔÏÂÊǽ«FLEX¼¯³Éµ½J2EE˵Ã÷:

  *******************************
*   Introduction              *
*******************************

The Flex compiler module for J2EE application servers is a Web Application aRchive (WAR) file that you can deploy
to most J2EE application servers that support servlets. This lets you rapidly compile,
test, and deploy an application: Instead of compiling your MXML file into a SWF file and
then deploying it and its wrapper files on a web server, you can just refresh the MXML
file in your browser.

The Flex compiler module for J2EE application servers also provides a JSP tag library
that lets you write Flex applications in JSPs.

The Flex compiler module for J2EE application is not for production use. The Flex compiler
module web application should not be made available on a public-facing web server.


*******************************
*   Requirements              *
*******************************

The Flex compiler module for J2EE application servers comes as a WAR file. You can deploy
it to any of the following J2EE web application servers:
* Adobe JRun 4 Updater 7
* Apache Tomcat 6.0.x
* IBM WebSphere 6.1.x € IBM 1.5
* BEA WebLogic 10 € Sun 1.5
* JBoss 4.2.x


*******************************
*   Installation              *
*******************************

To install the Flex compiler module for J2EE application servers, create an application root
directory and extract the contents of the WAR file into that directory. Your application server
might have a facility for deploying WAR files that you should use. After you deploy the WAR file,
restart your application server.

For example, on Tomcat, create a new directory under the {tomcat_install_dir}/webapps directory
and expand the WAR file into that new directory. Save your MXML and JSP files in that directory.


*******************************
*   Configuration             *
*******************************

The Flex compiler module for J2EE application servers uses the following configuration files:

WEB-INF/flex-config.xml
Defines the default settings for the Flex compiler.

WEB-INF/flex-webtier-config.xml
Defines settings specific to the web tier, such as logging, caching, and debugging.

WEB-INF/web.xml
Defines the web component settings for the Flex web application, such as servlet definitions
and mappings, and tag library definitions.

To use custom SWC files or ActionScript classes in your applications, add them to the
WEB-INF/flex/user-classes directory.

If you want to use data visualization components in your Flex applications, add the appropriate
SWC files to the WEB-INF/flex/libs directory.


ÒýÓÃ
×¢ÒâÎÊÌâ:

1) MXML×é¼þ·ÅÖÃÔÚ¸ùĿ¼WebRootÏ£¬¶ø²»ÊÇWEB-INFĿ¼Ï£¬ÒòMXMLÔËÐÐʱ¶¯Ì¬Éú

     swfÎļþ£¬Éú³ÉµÄswfÓëMXMLÊÇͬһĿ¼ÏÂ(WEB-INFϵÄÎļþ²»ÄÜÖ±½Ó·ÃÎÊ)¡£

2) ±¾ÊµÀýÖÐFLEXÄܽâÎö£¬FLEX3ÖеÄ×é¼þ(¼´ÄܽâÎöFLEX3ÃüÃû¿Õ¼ä)£¬ÒÔϸø³öFLEX4Óë

FLEX3×é¼þ¶¨ÒåÄÚÈÝ:


FLEX4:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
			   xmlns:s="library://ns.adobe.com/flex/spark"
			   xmlns:mx="library://ns.adobe.com/flex/mx"
			   width="435" height="54" minWidth="955" minHeight="600">
	<fx:Script>
		<![CDATA[
			import mx.events.SliderEvent;
			import mx.controls.Alert;
			protected function numberkj_changeHandler(valueStr:String):void
			{
				ExternalInterface.call("getNumberVal",valueStr); 
			}
		]]>
	</fx:Script>
	<fx:Declarations>
		<!-- ½«·Ç¿ÉÊÓÔªËØ£¨ÀýÈç·þÎñ¡¢Öµ¶ÔÏ󣩷ÅÔÚ´Ë´¦ -->
	</fx:Declarations>
	<mx:HSlider id="numberkj" x="5" y="2" width="425" change="numberkj_changeHandler(numberkj.values.toString())"
labels="[0 mins, 180 mins]" maximum="180" minimum="0" snapInterval="10" thumbCount="2" tickInterval="5">
	</mx:HSlider>
</s:Application>


FLEX3:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
				width="420" height="53" minWidth="955" minHeight="600" layout="absolute">
	
	<mx:Script>
		<![CDATA[
		import mx.events.SliderEvent;
		import mx.controls.Alert;
		protected function numberkj_changeHandler(valueStr:String):void
		{
		ExternalInterface.call("getNumberVal",valueStr); 
		}
		]]>
	</mx:Script>
	
	<mx:HSlider id="numberkj" x="10" y="9" width="400" change="numberkj_changeHandler(numberkj.values.toString())"
labels="[0 mins, 180 mins]" maximum="180" minimum="0" snapInterval="10" thumbCount="2" tickInterval="5">
	</mx:HSlider>
</mx:Application>
  • flexToJsp.zip (4.3 MB)
  • ÏÂÔØ´ÎÊý: 0
·¢±íÆÀÂÛ
Óû§Ãû: ÄäÃû