ãã¡ãã®ããã°è¨äºã®å 容ã¯ãåæãªãããã¡ãã®ãµã¤ãã«ç§»ç®¡è´ãã¾ããã lacucaracha2.hatenablog.jp
ãã®é£è¼ã¯ãJavaããããªããããã¨ã«ãªã£ã¦ãã¾ã£ãæ°åã®äººããJava以å¤ã®è¨èªã®ä½¿ç¨çµé¨ãããªã人ãªã©ãJavaã®åå¿è ãªã®ã«æ¥åã¢ããªï¼ãã¸ãã¹ã§ä½¿ãããã¢ããªã±ã¼ã·ã§ã³ï¼ã®éçºã§å³æ¦åã«ãªããªãã¨ãããªã人éã«åãã¦ã®é£è¼ã«ãªãã¾ããæ¨æºã®Javaã§ã§ãããã¨ã¯ãã¡ãããDBæä½ã®ããã®SQLããã使ãããã©ã¤ãã©ãªã®ä½¿ãæ¹ãªã©ãåãªãJavaã®ã¿ã®ç´¹ä»ã§ã¯ãªããJavaã§ã®æ¥åã¢ããªã®éçºã«å¿ è¦ã¨ãããåºç¤ç¥èå ¨è¬ã«ã¤ãã¦é£è¼ãéãã¦å¦ãã§ãããã¨ãç®çã¨ãã¦ãã¾ãã ã¯ããã« ä»åã®è¨äºã§ã¯ãJavaï¼ã¸ã£ãï¼ã§æ¥åã¢ããªãéçºããããã®éçºç°å¢ã®æ§ç¯ãè¡ãã¾ããã¾ããJavaã®ã¢ããªã±ã¼ã·ã§ã³ã®éçºã§ã¯çµ±åéçºç°å¢ï¼IDEï¼ã使ã£ã¦ä½æ¥ãããã¨ãã»ã¨ãã©ã§ããçµ±åéçºç°å¢ã¨ã¯ã¢ããªã±ã¼ã·ã§ã³ã®éçºããµãã¼ãããç°å¢ã§ããã®é£è¼ã§ã¯å¤ãã®ç¾å ´ã§ä½¿ããã¦ããEclipseï¼ã¨ã¯
ããã£ããå¦ã¶ Javaè¬åº§ãã¯ãåå¿è åãã® Javaå ¥éè¬åº§ãµã¤ãã§ããå¤ãã®ãµã³ãã«ã³ã¼ããç®ã«ãããã¨ã§ãã£ããçå®ã« Javaããã°ã©ãã³ã°ã®åºæ¬ãåå¼·ãã¾ãã æ´æ°å±¥æ´ 第01ç« : ã¯ããã« ã¯ããã« æ¬ã¦ã§ããµã¤ãã®ç®æ¨ã¨ã¿ã¼ã²ãã å¦ç¿ã®å¿æ§ã ããããæ¸ç± ããã¾ããªæ§æ 第02ç« : Javaæ¦è«ã¨éçºç°å¢ã®æ§ç¯ Javaã¨ã¯ éçºç°å¢ã®æ§ç¯ éçºç°å¢ã¡ã¢ 第03ç« : ã¯ããã¦ã® Javaããã°ã©ã ããã¼ã¯ã¼ã«ã èªã¿ãããã½ã¼ã¹ã³ã¼ããæ¸ãã 第04ç« : åºæ¬åã¨åºæ¬åå¤æ°ãæ¼ç®åã¨ãã£ã¹ããMath.randomã¡ã½ããã¨èªä½ã©ã¤ãã©ãª åºæ¬åã¨åºæ¬åå¤æ° æ¼ç®åã¨åºæ¬åã®ãã£ã¹ã Math.randomã¡ã½ããã¨èªä½ã©ã¤ãã©ãª 第05ç« : æ¡ä»¶åå² ifæ switchæ 第06ç« : ç¹°ãè¿ã foræ whileæ do whileæ gotoã¯ä½¿ããªã 第07
ããã³ã¬ã§åããJavaå ¥éè¬åº§ãã¯ãJavaã¨ããããã°ã©ã è¨èªãããã£ããã¨æéãæãã¦ãã³ã¬ã§è§£èª¬ãã¦ããã¨ããå ¥éè åãã®è¬åº§ã§ãã æ¶ç©ºã®é«æ ¡çãã¡ã«æããå½¢å¼ã§ãJavaã®åºç¤ããé ã«è§£èª¬ãã¦ããã¾ããä¸éãã®ãã³ã¬ãèªãã°ãJavaã®ãªãã¸ã§ã¯ãæåã®æ¦å¿µã«ã¤ãã¦å¦ã¹ã¾ãã 以ä¸ãå 容ã®æ°å¤ãã¼ã¿ã§ãã ãã³ã¬ããã®è©±æ°ï¼95話 ãã³ã¬ãªãã®ã³ã©ã ï¼9話 åè¨Webãã¼ã¸æ°ï¼104ãã¼ã¸ ãã³ã¬ã®ç·ãã¼ã¸æ°ï¼832ãã¼ã¸ ã½ã¼ã¹ã³ã¼ãã¯ããã¦ã³ãã¼ã ãã¼ã¸ ããå ¥æã§ãã¾ãã PDFçã¯ãã¡ãããå ¥æã§ãã¾ããkindleçã¯ãã¡ãããå ¥æã§ãã¾ãã ãã®ãã³ã¬ã¯ã箱人形ãã³ã¬(Box Comic) ãã§ä½æãã¦ãã¾ãã å ¬ééå§ï¼2013/04/20 第1é¨å®çµï¼2013/06/09 第2çå®æï¼2015/08/18 æçµæ´æ°ï¼2018/03/01 ä½æï¼ã¯ããã¹ã»ã¯ã©ã¦
1. åãããªããããã説æãèªãã§ãåãããªãã â 1.1. æªã ã«åãããªã Java çãªãã¸ã§ã¯ãæå ä»æ¥ã³ Java çãªãã¸ã§ã¯ãæåã®èª¬æãªãã¦æã®æ°ã»ã©ãããããªæ°ããã¾ãããããã§ããªããããã§åãã£ãï¼ãã¨ãã説æã«è¾¿ãã¤ããªãä¸éãªäººãããããã§ãããã¾ãããã ãè²ã ãªèª¬æã溢ãã¦ãããéã«ã©ããèªãã°è¯ãã®ãã¯ã±åãããªããªã£ã¦ãã¾ãã®ããããã¾ããããã£ããèªãã§ãç解ã§ããªãã£ãã®ã§ããã°ããã£ã¨ãã®èª¬æã¨èªè ã®ç¸æ§ãæªãã£ããã§ãããã⦠ã¨ããããã§ãåã Java çãªãã¸ã§ã¯ãæåãå ¨ã£ã£ã£ã£ç¶ããã£ã½ã£ã¡ãåãããªãã¨ãã人ã«åãã¦èª¬æããè¨äºãæ¸ããã¨æãã¾ããããã§ãªã人ã«ã¯ç¡ä¾¡å¤ãªè¨äºã§ãã®ã§ãã©ã¦ã¶ã®ãæ»ãããã¯ãªãã¯ãã¾ãããã â 1.2. ããªãã¸ã§ã¯ãæåãã¨ããåã®åã®å³¶ããã ãªãã¸ã§ã¯ãæåã«ã¯ããã¤ãã®å°éç¨èªããã£ã¦ãå¦ç¿
æ£ããæå³ãç解ãã¦ããæ¹ã«ã¨ã£ã¦ã¯ãã¾ã£ãã常èã¬ãã«ã®è©±ã§ãããä½ããã¾ããã¨æãããæ¹ã ãå¤ããã¨æãã¾ããã大è¦æ¨¡æ¡ä»¶ã®ã¬ã¬ã·ã¼ã³ã¼ããªã©ãç§ãä»äºã§è¦ãããJavaã®ã³ã¼ããèªãã¨ãããã®ã³ã¼ããæ¸ããSEãPGã®æ¹ã ã¯ãã¯ããã¦ç¶æ¿ã®æå³ãæ£ããç解ãã¦ããªãã®ã§ã¯ãªãããã¨æãããè¨è¨ã®ã³ã¼ãã«åºä¼ããã¨ãå°ãªãããããã¾ããç¾å¨ã§ã¯æ¹è¯ããã¾ãããï¼Javaããã°ã©ãã³ã°è½åèªå®è©¦é¨ã®åé¡ãããªãæ¹åããã¦ãã¾ãã - é人ããã°ã©ãã¼ãç®æãã¦ï¼ã以åã®Javaããã°ã©ã èªå®è©¦é¨ã®åé¡ã¯ãããããä¸é©åãªè¨è¨ãããã¦ããå ¸åçãªä¾ã¨ãªã£ã¦ããã®ã§ãããå®éãSIæ¥çã§ã¯ãã®ãããªå質ã®ã³ã¼ãã®ã·ã¹ãã ãä»ã§ãç¾å½¹ã§å¤æ°ç¨¼åãã¦ããã¨ããã ãã§ãªããç¾å¨ã§ãæ°ãã«çã¿åºããã¦ããã¨ããã®ã¯æ®å¿µãªããç´ãããªãäºå®ã®ãããªã®ã§ãã 確ãã«æ°äººç ä¿®ã§ãåºä¹³é¡ãç¶æ¿ãã¦ç¬ã¯ã©ã¹ã¨
ãããã¯ã¼ã¯ããã°ã©ãã³ã°ã®åºç¤ç¥è ããã§ã¯ IP ã¢ãã¬ã¹ããã¼ãçªå·ãã¯ã©ã¤ã¢ã³ãã¨ãµã¼ãã®å½¹å²ãªã©ã説æãã perlã»Cè¨èªã»Java ãªã©ã§ã½ã±ãã (Socket) ã使ã£ã HTTP ã¯ã©ã¤ã¢ã³ãã POP3 ã¯ã©ã¤ã¢ã³ããç°¡åãªãµã¼ããä½æãã¦ã¿ã¾ãã è¦ã¯ãããã¯ã¼ã¯ããã°ã©ãã³ã°ããã£ã¦ã¿ãããã¨ãããã¨ã§ãã ãã®ãã¼ã¸ã®ãµã³ãã«ããã°ã©ã ã¯ãRFC ãªã©ã®è¦æ ¼ã«æºæ ãããæ£ãããããã°ã©ã ã§ã¯ããã¾ããã ã¾ããå ¨ä½çã«ã¨ã©ã¼å¦çãä¸ååã§ã (ä»å¾æ¹åããäºå®ã§ã)ã ããã¾ã§ãæ¦è¦ãç解ããããã®ãµã³ãã«ã¨ã¨ããã¦ãã ããã ããæ¬æ°ã§ãã£ããã¨ããã¯ã©ã¤ã¢ã³ãããµã¼ããæ¸ããããªãããã®ãã¼ã¸ãèªãã ä¸ã§ã ããã« RFC ãçèªãããã㦠wgetã»Apacheã»ftp ã³ãã³ããªã©ã®ã½ã¼ã¹ãåèã«ãã¦ãã ããã ãã®ãã¼ã¸ã«ééããè¦ä»ããããæ²ç¤ºæ¿ ã§
ï½æ°äººããã°ã©ãï¼SEã¯è¦ãã¦ããããâã¾ã¨ãâï½ ï¼ ITç·¨éé¨ 2011/3/24 ãã®ãã¼ã¸ã¯ãéçºè ï¼ããã°ã©ããã以ä¸ã®ãããªé ç®ã«é¢ãã¦ã常èçãªåºç¤ç¥èãå¦ã¶ããã®è¨äºãªã³ã¯ã®ã¾ã¨ãã§ãã ãã¹ã¯ããããªã©ã®è¦ãç®ã«é¢ãã3ã¤ã®å¸¸è ããã°ã©ãã³ã°ã»ã³ã¼ãã£ã³ã°ã«é¢ãã6ã¤ã®å¸¸è ãããã¯ã¼ã¯ï¼éä¿¡ã«é¢ãã9ã¤ã®å¸¸è ã»ãã¥ãªãã£ã«é¢ãã3ã¤ã®å¸¸è ãã¼ã¿ã¨ãã¡ã¤ã«ã«é¢ãã5ã¤ã®å¸¸è è¨è¨ã»ã¢ã¼ããã¯ãã£ã«é¢ãã6ã¤ã®å¸¸è ã½ããã¦ã§ã¢ã®å質管çã«é¢ãã3ã¤ã®å¸¸è æ¥åã¢ããªã«é¢ãã5ã¤ã®å¸¸è Java SEï¼æ§ãJ2SEï¼ã®ã³ã¢APIãJSPï¼ãµã¼ãã¬ããï¼Strutsã®Webã¢ããªã±ã¼ã·ã§ã³éçºãJBossããã®ä»ã®Javaãªã¼ãã³ã½ã¼ã¹ã½ããã¦ã§ã¢ã®ãµã³ãã«ã³ã¼ãã使ãæ¹ãéãã¦ããã¾ãã¾ãªâ常èâãå¦ç¿ãã以ä¸ã®é£è¼ã®è¨äºã«ãåºç¤ç¥èã®ã«ãã´ãªãã¨ã«åãã¦ãªã³ã¯ãã¦ãã¾
Java: The Good Partsã®æ¬ã®ã¿ã¤ãã«ã«è§¦çºããã¦ãéã«Javaè¨èªã®ä½¿ãã«ããé¨åãããã¤ãããã¯ã¢ãããã¦ã¿ã¾ãããJava EEãªã©ã®æ¥åç³»ã®ã¢ããªã±ã¼ã·ã§ã³ããã°ã©ãã¼ã®è¦ç¹ã§æ¸ãã¦ãã¾ãã®ã§ãå¥ã®ç«å ´ã§ã¯ããã§ææãã¦ããäºé ãå¿ ãããBad Partã§ã¯ãªãã¨ããææãããããããã¾ããããä»ã«ããããããªãã¤ã³ããããã¨æãã¾ãããã¨ãããããç§ã®ç¬æã§æãã¤ãããã®ã10å説æãããã¨æãã¾ãã 1.æ¨æºAPIã®ãã§ãã¯ä¾å¤ãæ±ãã«ãã Javaè¨èªã®ãã§ãã¯ä¾å¤ã¯æ¬å½ã«Good Partãªã®ãï¼ - é人ããã°ã©ãã¼ãç®æãã¦ã§ãåãä¸ãã¾ããããBad Partã®ç¬¬ä¸çªç®ã¨ãã¦æ¨æºAPIã®ãã§ãã¯ä¾å¤ãæ±ãã«ããã¨ããç¹ãææããã¦ããã ãããã¨æãã¾ãããã§ãã¯ä¾å¤ã«ã¤ãã¦ã¯ãçå±ä¸ã³ã³ãã¤ã©ã¼ã«ãã£ã¦ä¾å¤ã®å¦çãããã°ã©ãã¼ã«å¼·å¶ããããã¨ãã§ããã
ã¯ããã« ã½ã¼ã¹ã³ã¼ãã¯è¨è¨ã§ãããã³ã¼ãã®è¨è¿°ã¯å質ã«ç´çµããã®ã¯è¨ãã¾ã§ããªããã¡ãªã¿ã«ãããã°ã©ãã«ã¨ã£ã¦ç¹ã«éè¦ãªã®ã¯ä¿å®æ§ã ãã³ã¼ãã¯æ¸ããç´å¾ããä¿å®å¯¾è±¡ã¨ãªãããã ãã³ã¼ãã¯è¦æ±ææ¸ã®ç¯å²ã§åãã°ããã¨æã£ã¦ãã人ãããã°ä»ãããã½ã¼ã¹ã³ã¼ããã³ãããã¦100klã«å¢ãããã©ã°ã¤ã³ããã¤ã®éã«ãã¤ã³ã¹ãã¼ã«ãããåªããããã¦ããããã幸ãããããèªãã§ãã人ã«ã¯ãããªäººã¯ããªãã ããã¨æãããã©ãã ã¨ãããã¨ã§ãã³ã¼ãã®å質ãä¸ããè¦å ãããªãã¡ã·ã¹ãã å ¨ä½ã®å質ãä¸ããè¦å ã¨ãªãããã¤ä½¿ãããããã¢ã³ããã¿ã¼ã³ãæãã対çãæ¤è¨ãã¦ãããã¨ã«ããã対象ã¯ä»¥ä¸ï¼ åºåãã©ã¡ã¼ã¿ å¦çç¶æ è¿å´ æå³ã®ããé å ç¡æå³ãªåæå å¤ãããtry-catch æé»ã®é åº ã³ã³ãã¤ã©è¦åã®ç¡è¦ éå°ãªã³ã¡ã³ã e.printStackTrace() åºåãã©ã¡ã¼ã¿ ã¡ã½ããã®å¼æ°ã«ãª
HelloWorldãã£ã¦ãé¢ç½ããã¼ãã ãï¼ï¼ çããããã«ã¡ã¯ã Google App Engine ï¼GAEï¼ã§Javaããµãã¼ãããã Pythonã¯ã¹ã«ã¼ãããã©Javaãªãããããï¼ã§ãJavaæªçµé¨ï¼ GAE/Jã«æãåºãã¦ã¿ããã©ãçµå±hello, world!ã®ãµã³ãã«ã¢ããªãå ¬éããã¾ã¾ æ¾ç½®ããç¶æ ã«ãªã£ã¦ãã¾ãããï¼ åã¯ããã§ãï¼ Java使ããã楽ããã ãããªã¼ Javaè¦ãã¦ä»äºã®æ¡ä»¶ããªããããªã¼ Java使ããããªãã¸ã§ã¯ãæåããã£ã¨ãããã ãããªã¼ ãªã¢å ã¸ã®ãããã ã¨ã常ã æã£ã¦ãã¤ã¤ããJavaã®æåã®é¢åèãã®åã«ãã¤ãããæ°åªå¤±ãããã§ãããã HelloWorldã²ã¨ã¤ããã®ã«public static void main()æ¸ããªãã¦é¢åèããã§ã ã³ã³ãã¤ã«ãªãã¦é¢åã§ãã£ã¦ããã¾ãã eclipseã®ä½¿ãæ¹æ¶ããã®ãé¢åã ããecli
Javaä»®æ³ãã·ã³ä¸ã§åããªãã¸ã§ã¯ãæåï¼é¢æ°åè¨èªã¨ãã¦ãScalaï¼ã¹ã«ã©ï¼ãæè¿æ³¨ç®ãéãã¦ãã¾ããScalaã§æ§ç¯ãããWebã¢ããªã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯ã¯ããã¤ãããã¾ããã æ¬é£è¼ã§ã¯ãã®ä¸ã§æ¯è¼çæ´å²ã®ããï¼ã¨ãã£ã¦ã2å¹´ç¨åº¦ã§ããï¼ ãã¬ã¼ã ã¯ã¼ã¯ã§ãããLiftï¼ãªããï¼ãç´¹ä»ãããã¨æãã¾ãã ã¯ããã« Javaä»®æ³ãã·ã³ï¼ä»¥ä¸JVMï¼ä¸ã§åããªãã¸ã§ã¯ãæåï¼é¢æ°åè¨èªã¨ãã¦ãScalaï¼ã¹ã«ã©ï¼ãæè¿æ³¨ç®ãéãã¦ãã¾ãã Scalaã§æ§ç¯ãããWebã¢ããªã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯ã¯ããã¤ãããã¾ããã æ¬ç¨¿ã§ã¯ãã®ä¸ã§æ¯è¼çæ´å²ã®ããï¼ã¨ãã£ã¦ã2å¹´ç¨åº¦ã§ããï¼ ãã¬ã¼ã ã¯ã¼ã¯ã§ãããLiftï¼ãªããï¼ãç´¹ä»ãããã¨æãã¾ãã 対象èªè Javaã¯ç¥ã£ã¦ããããScalaãå¦ãã§ã¿ããã¨æã£ã¦ããæ¹ Scalaã§ã®Webã¢ããªã±ã¼ã·ã§ã³éçºã«èå³ãããæ¹ å¿ è¦ãª
Android ã¨ã¯ãGoogleãçºè¡¨ããæºå¸¯é»è©±åãã®ãã©ãããã©ã¼ã ã®å称ã§ãã2007å¹´11æã«çºè¡¨ããã2009å¹´å¤ã¾ã§ã«ã¯å社ããå®æ©ããªãªã¼ã¹ãããäºå®ã§ããæ¢ã«Android ã® SDK ãç¡åã§é å¸ããã¦ããããããå©ç¨ãã¦ãå¤ãã®ã¢ããªã±ã¼ã·ã§ã³ãå ¬éããã¦ãã¾ããAndroid ã¯ãJava ã§èªä½ã½ãããéçºã§ããç¹ã話é¡ã«ãªã£ã¦ãã¾ããæ¬é£è¼ã§ã¯ãAndroid ããã£ããã«ããã¤ã¦ãã£ããã¨ã®ãã Java ããã°ã©ãã³ã°ãåéãããã¨ãããã®ã§ãã Android ã¨ã¯ãGoogleãçºè¡¨ããæºå¸¯é»è©±åãã®ãã©ãããã©ã¼ã ã®å称ã§ãã2007å¹´11æã«çºè¡¨ããã2009å¹´å¤ã¾ã§ã«ã¯å社ããå®æ©ããªãªã¼ã¹ãããäºå®ã§ããæ¢ã« Android ã® SDK ãç¡åã§é å¸ããã¦ããããããå©ç¨ãã¦ãå¤ãã®ã¢ããªã±ã¼ã·ã§ã³ãå ¬éããã¦ãã¾ããAndroid ã¯ãJava
æ¨æ¥ã®ç¶ãã PHPã®ä¾¡å¤ãç¸å¯¾çã«è½ã¡ã¦Javaã®ä¾¡å¤ãããã£ã¦ãã PHPã¨Java Windows Azureã§ã¯ãPHP対å¿ããããããã ã¾ããGAE/Jä¸ã§PHPãåããããä¸ç·ã§ã¯ãªããã¨ããã³ã¡ã³ãããã£ããç¾ç¶ã§ã¯GAE/Jä¸ã§PHPãåããç°å¢ãæªå®æã§ãã£ãã¨ãã¦ããå ã®ãã¨ãè¨ãã®ã§ããã°ãã¡ããå®æ度ãããã£ã¦ãããã¨ãèæ ®ããå¿ è¦ãããã ãã ãããããèæ ®ããã¨ãã¦ããPHPã®ç¸å¯¾çãªä¾¡å¤ãä¸ãã£ãã¨ããæè¦ã«ã¯å¤ããããªãã PHPãããã¾ã§ãã£ã¦ãããåããç°å¢ã確ä¿ãããããã¨ããç¹æ¨©ããªããªã£ãã¨ãããã¨ããã£ã¦ãPHPã®ç¸å¯¾çãªä¾¡å¤ãä¸ãã£ãã¨ãã£ã¦ããããã ãå®è¡ç°å¢ã®ç¢ºä¿ã¨ããç¹ã§ã¯ãPHPããã£ã¦ããã»ãã®è¨èªã«å¯¾ããåªä½æ§ããªããªã£ãã ã¾ããGoogle App Engineã«ãã£ã¦Pythonã§ã¯ãªãJavaãå¼·ããªã£ãã¨ããã®ã¯ãä»ã¾ã§
2000å¹´ããããPHP4ãJSP1.0ãåºããããPHPãããJavaãããã¨è¨ã£ã¦ãããJavaã¯åãããå®ããµã¼ãã¼ããªããã¨ãããã¨ã§ããµã¼ãã¼ã®ç¢ºä¿ã容æãªPerlãPHPã使ããã¾ããã Javaã使ãã«ã¯ãä¸å°ã¾ããã¨åãããå²é«ãªã¬ã³ã¿ã«ãµã¼ãã¼ã§ãèªåã§Tomcatãªã©ãã¤ã³ã¹ãã¼ã«ããå¿ è¦ãããã¾ããããããã£ãç¶æ³ã¯ãã°ããç¶ãããPHPãªãã°å®ãåããããµã¼ãã¼ããããããããã¨ãããã¨ãããPHPããã使ãããããã«ãªãã¾ããã PHPã®æ®ååæã§ã¯ããµã¼ãã¼ã®ç¢ºä¿ã容æãªãã¨ãPHPæ¡ç¨ã®å¤§ããªçç±ã®ã²ã¨ã¤ã ã£ãã¨æãã¾ãã ããããç¶æ³ã¯æè¿ã¾ã§ç¶ãããã©ãAmazon EC2ã®ãããã§ãJavaã¯åãããå®ããµã¼ãã¼ããªããã¨ããåé¡ã¯è§£æ±ºãã¦ãã¾ãããAmazon EC2ãåãã¦ãèªåã§Tomcatãªã©ãã¤ã³ã¹ãã¼ã«ããåé¡ãããã¾ããããHerokuãS
æ¬è¨äºã¯2001å¹´ã«å·çããããã®ã§ããJSPå ¨è¬ã®ææ°æ å ±ã¯ï¼ IT ãã¼ã¯ã¼ãINDEXã®ãJSPï¼ServletãããTomcatå ¨è¬ã®ææ°æ å ±ã¯ï¼ IT Java Solutuionã®ã«ãã´ãªãã¢ããªã±ã¼ã·ã§ã³ãµã¼ãï¼Tomcatãªã©ï¼ãããåç §ãã ããã ããç´ããJSPã¨Tomcatã éä¸ã¾ã§ããã£ããæ«æãããã¹ãã«ãã§ã³ã¸ãããï¼ã¨ããèªè ã®ããã«ãTomcatã®ææ°ãã¼ã¸ã§ã³ã使ããªããJSPãåºç¤ãã解説ãã¦ãã ãJava Solutionããã©ã¼ã©ã 2007/4/19 Javaã¨ããè¨èªããµã³ãã¤ã¯ãã·ã¹ãã ãºã«ãã£ã¦ä¸ã«åºããã¦ããããã¶ããã¡ã¾ãããJavaãç»å ´ããå½æãJavaã¨ããã°ã¢ãã¬ããã¨å義ã«ã¨ããããããã©ã¦ã¶ä¸ã§åä½ããã¢ãã¡ã¼ã·ã§ã³ãã²ã¼ã ãä½æããããã®æè¡ã¨ãã¦ä¸ã®ä¸ã«åºã¾ã£ã¦ããã¾ããã ããããªãããã¢ãã¬ããã¯Javaãç¨ãã¦ã§ãã
_ 5å¹´å¾ã«å¾æããªãJavaããã°ã©ã ã®æ¸ãæ¹ ããæ°æ¥ãæ»ã¬ã»ã©å¾æãã¾ãã£ã¦ããã®ã§ãããããã¦ï¼ã¨ããã®ã¯ãæ°å¹´åã«ãä¸åº¦å¾æãã¾ãã£ã¦ããã®ã¨ãã®ç¥è¦ã¯ããããå¦æ¹ç®ã¨ãã³ã¼ãã£ã³ã°ã®æã«æ¸ãã¦ããããã ãï¼å¾æããªãããã®æ¸ãæ¹ãããã¤ãç´¹ä»ããã ã¨ã«ããããã¡ã¯ããªã¡ã½ãããã¿ã¼ã³ã使ããã¨ã ããã¯æ¬å½ã«éè¦ããããç°¡åã§ãããªããå¹æã¯çµ¶å¤§ã ã ããªä¾ã public class FooBar { private Connection conn; ... protected void setup() { ... conn = DriverManager.getConnection(url); ... } urlãæå®ãããã¨ããDriverManagerã®å®è£ ã交æããã°è¯ãã ããã¨æ³å®ãã¦ãã¦ãï¼ã¨ããããConnectionãªãããããæ¹æ³ãããå¾ãããããã¯ãããª
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}