Java EE 6×ÜÀÀ£ºÈ«ÐÂƽ̨µÄÖ÷ҪĿ±ê
Java EE 6ÏÖÔÚÒѾÕýʽ·¢²¼¡£ÔÚSunµÄ¹Ù·½ÍøÕ¾ÉÏ£¬ÓÐһϵÁÐÎÄÕ¶ÔJava EE 6µÄ¼¼Êõ±ê×¼½øÐÐÁËÏêϸµÄ½éÉÜ¡£½ñÌìÕâƪ½éÉÜJava EE 6µÄÖ÷ҪĿ±ê¡£
Javaƽ̨ÆóÒµ°æ±¾(Java EE)Êǹ¹½¨JavaÆóÒµ¼¶Ó¦ÓÃϵͳµÄÐÐÒµ±ê×¼£¬ËüÒÔ¼áʵµÄJavaƽ̨±ê×¼°æ(Java SE)Ϊ»ù´¡£¬Ìí¼ÓÁËÖ§³Ö¿ÉÀ©Õ¹ÐÔ¡¢¿É·ÃÎÊÐÔ¡¢°²È«ÐÔ¡¢ÍêÕûÐÔºÍÆäËüÆóÒµ¼¶Ó¦ÓÃÐèÒªµÄ¿âºÍϵͳ·þÎñ¡£
×Ô1999ÄêÊ״η¢²¼ÒÔÀ´£¬Java EEÒѾ·¢Õ¹³ÉÒ»¸ö¹¦ÄܷḻµÄ¸ßÐÔÄÜƽ̨£¬Æä×îа汾Java EE 6ͬʱǿµ÷Á˼òµ¥ÐÔºÍÒ×ÓÃÐÔ¡£Êµ¼ÊÉÏ£¬Ê¹ÓøÃƽ̨µÄµ±Ç°°æ±¾Java EE 5¿ª·¢JavaÆóÒµ¼¶Ó¦ÓÃϵͳÒѾ±äµÃÇ°ËùδÓеÄÈÝÒס£
Java EE 6ÔÚÉÏÒ»¸ö°æ±¾»ù´¡ÉÏ£¬È¡µÃÁ˲»ÉÙ½øÕ¹£¬Ìí¼ÓÁË´óÁ¿µÄм¼Êõ£¬ÆäÖÐÓÐЩÁé¸ÐÀ´×Ô³äÂú»îÁ¦µÄJava EE¼¼ÊõÉçÇø£¬ËüÒ²½øÒ»²½¼ò»¯ÁËƽ̨£¬Ïà¶ÔÓÚÒÔÍùµÄJava EE°æ±¾À©Õ¹ÁË¿ÉÓÃÐÔ¡£
±¾ÎÄÖ÷Òª½éÉÜJava EE 6µÄÄ¿±ê¡£ÏÂÃæÊÇJava EE 6ƽ̨µÄÖ÷ҪĿ±ê£º
¸ü¼ÓÁé»î
Ëæ×Åʱ¼äµÄÍÆÒÆ£¬Java EEƽ̨±äµÃÔ½À´Ô½Ó·Ö×£¬ÎªÁ˽â¾öÕâ¸öÎÊÌ⣬Java EE 6ÒýÈëÁËProfilesµÄ¸ÅÄProfiles°üÀ¨ÁËΪ¾ßÌåÓ¦ÓÃÀàÉè¼ÆµÄJava EEƽ̨ÅäÖá£Ò»¸öProfiles¿ÉÄÜ°üÀ¨Java EEƽ̨¼¼Êõ£¬ÒÔ¼°ÒѾͨ¹ýÁËJavaÉçÇø½ø³Ì(JCP)µÄ¶îÍâ¼¼ÊõµÄÒ»¸ö×Ó¼¯£¬µ«ÕâЩ¶îÍâ¼¼Êõ²¢²»ÊÇJava EEƽ̨µÄÒ»²¿·Ö¡£Java EE 6Ê×´ÎÒýÈëÁËÕâЩProfiles£ºWeb Profile£¬Éè¼ÆÓÃÓÚWebÓ¦ÓÃϵͳ¿ª·¢µÄJava EEƽ̨µÄ×Ó¼¯£¬Web ProfileÖ»°üÀ¨ÄÇЩ´ó²¿·ÖWebÓ¦Óÿª·¢ÈËÔ±ÐèÒªµÄ¼¼Êõ£¬²»°üÀ¨ÄÇЩ¿ª·¢ÈËԱͨ³£²»ÐèÒªµÄÆóÒµ¼¶¼¼Êõ¡£
´ËÍ⣬Java EE 6ƽ̨ÒѾȷ¶¨ÁË´óÁ¿µÄºòÑ¡¼¼Êõ£¬ÕâЩºòÑ¡¼¼Êõ°üÀ¨ÒѾ±»Ð¼¼ÊõÈ¡´úµÄ¼¼Êõ£¬»òÕßÄÇЩûÓй㷺ÍƹãµÄ¼¼Êõ£¬ºòÑ¡¼¼ÊõÒâζ×ÅËü½«³ÉΪƽ̨µÄ¿ÉÑ¡×é¼þ£¬¶ø²»ÊDZØÐèµÄ×é¼þ¡£
¿ÉÀ©Õ¹ÐÔ¸üºÃ
Ëæ×Åʱ¼äµÄÍÆÒÆ£¬Ð¼¼ÊõÒѾ³ÉΪWeb»òÆóÒµÓ¦Óÿª·¢ÕßÔ½À´Ô½¸ÐÐËȤµÄ¶ÔÏó£¬Java EE 6°üÀ¨¸üºÃµÄÀ©Õ¹ÐÔ£¬Ïà±È֮ǰµÄ°æ±¾¾ßÓиü¶àµÄ·þÎñÌṩÕß½Ó¿Ú£¬Ê¹Äã¿ÉÒÔÓñê×¼µÄ·½·¨ÔÚÄãµÄJava EE 6ʵÏÖÖвåÈë¼¼Êõ£¬ÉõÖÁ¿ò¼Ü¡£Ò»µ©²åÈ룬ÕâЩ¼¼Êõ¾ÍÓëÄÚÖÃÓÚJava EE 6ƽ̨ÖеŤ¾ßÒ»ÑùÒ×ÓÚʹÓá£
¶Ô¿ÉÀ©Õ¹ÐÔÖصã·ÅÔÚWeb²ã£¬WebÓ¦Óÿª·¢ÈËԱͨ³£»áʹÓõÚÈý·½¿ò¼Ü£¬µ«×¢²áÕâЩ¿ò¼ÜÈÃÆäÄÜÓÃÔÚJava EE WebÓ¦ÓÃϵͳÖпÉÄÜ»áºÜ¸´ÔÓ£¬Í¨³£ÐèÒª¿ª·¢ÈËÔ±Ìí¼Ó»ò±à¼¸´ÔÓµÄXML²¿ÊðÃèÊöÎļþ£¬Java EE 6ͨ¹ý×ÔÎÒ×¢²á¾Í¿ÉÒÔʹÓÃÕâЩ¿ò¼Ü£¬Òò´ËºÜÈÝÒ׺ϲ¢ºÍÔÚÓ¦ÓÃϵͳÖÐÅäÖÃËüÃÇ¡£
½øÒ»²½¼ò»¯ÁË¿ª·¢Ä£ÐÍ
Java EE 5ÒѾÈÃWebºÍÆóÒµÓ¦ÓÃϵͳ¿ª·¢±äµÃ·Ç³£·½±ã£¬ÀýÈ磬Java EE 5ÒýÈ
Ïà¹ØÎĵµ£º
javaÖÐÔõô¼ÓÈëÉùÒô ÏÈ˵һÏÂÔÚ applet Öв¥·ÅÉùÒôÎļþµÄÒ»°ã²½Ö裺
´´½¨Ò»¸ö AudioClip ¶ÔÏó
×°Èë .au »òÕßwavµÄÉùÒôÎļþ£¨»òÕߺóÃæËù˵µÄÖ§³ÖµÄÀàÐÍ£©µ½ AudioClip ¶ÔÏó
ÏÂÃæÊÇÏàÓ¦µÄ´úÂ룺
¡¡import java.applet.*;
AudioClip ac = getAudioClip(getCodeBase(), soundFile);
ac. ......
java¹¹Ô캯Êý
ÆäÓï·¨¸ñʽÈçÏ£º
< modifiers> <class_name>([< argu_list>]) {[< statements>]}
×Ô¶¨Òå¹¹Ôì·½·¨£º·½·¨ÃûÓëÀàͬÃû£¬Ê××Öĸ´óд£¡Ã»Óзµ»ØÀàÐÍ¡£³ý´ËÖ®ÍâÆäËû¶¼¸úÆÕͨ·½·¨Ò»Ñù¡£
ĬÈϹ¹Ô캯Êý£ºÃ»ÓÐÐβÎûÓз½·¨Ì壡È磺public Person() {}
¶ÁÏÂÃæµÄÀý×Ó£¬Ìå ......
¸ÕÔÚ±¾×ÓÉÏ×°ÁËWindows 7 x64£¬È»ºó×°ÁË64λµÄJRE£¬·¢ÏÖEclipseºÍOOÓÐЩ¹ÖÒìµÄÐÐΪ¡£¾ßÌå¶øÑÔ¾ÍÊdzÌÐòÎÞ·¨ÕýÈ·½áÊø£ºµã´°¿ÚÓÒÉÏ·½µÄ²æ²»ºÃʹÁË¡£µãÁ˺ó½ø³Ì²¢Ã»ÓнáÊø£¬¶øÖ»ÊÇÔÚµ±Ç°´°¿ÚºÍºǫ́´°¿ÚÖ®¼äÇл»¡£ÕýÔÚÏÂ32λµÄJRE£¬µÈ×°ÉÏ¿´¿´½á¹û¡£
¿´ÆðÀ´Ó¦¸ÃÓÐÁ½ÖÖ·½·¨½â¾ö£ºÓÃ32λµÄJRE»òÕß»»³É64λµÄEclipseºÍOO¡£
½â¾ö£º ......
FacesContext context = FacesContext.getCurrentInstance();
HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest();
String parameterValue = request.g ......