Java Web µÚÆßÌì ФÀÏ´®½²+¹ºÎﳵС½á
ͨ¹ý
½ñÌìСÀÏʦ¶Ô
Javaweb
µÄ´®½²£¬×Ô¼º×î´óÊÕ»ñÊǶÔÕû¸öjavaWebÓÐÁËÒ»¸öϵͳµÄÀí½â£¬¶ÔʵÏÖ¸÷¸ö²½ÖèµÄÔÀíÓÐÁËÒ»¸öÈÚ»á¹áͨ£¬ÕûÌå֪ʶµãÒ²´®ÁªÁËÆðÀ´£¬×Ô¼ºµÄ˼ÏëÒ²´ÓÒÔÇ°µ¥´¿µÄÀûÓÃ
Java
´úÂë±àдÏÖʵÏîÄ¿³ÌÐòµ½Ó¦ÓÃÏÖÓй¤¾ß·½±ã¿ì½ÝµÄ·¢¿ª³öÏîÄ¿³ÌÐòµÄ¹ý¡£ÏÖÔڻعË֮ǰ6ÕµÄ֪ʶµãÄÚÈÝ£¬
Javaweb
¸Ð¾õÇåÎúÁ˺ܶ࣬´Ó
HTTP
ÈëÊÖ£¬ÔÙ¶Ô
HTTP
ÖеÄÇëÇó¡¢ÏìÓ¦ÖеÄ
4
¸ö×é³É²¿·Ö×öÒÀ´Î½âÎö£¬Ã¿¸ö²¿·Ö¶¼ÓÐÏàÓ¦µÄ¼¸¸ö·½·¨»ñÈ¡µ±Ç°Ä¿±êµÄÊôÐÔ£¬È»ºóµ½ÊµÏÖ¹ýÂËÆ÷¡¢¼àÌýÆ÷µÄ¹ý³Ì£¬×îºóÒýÈë
JSP
¡¢
EL
¡¢
JSTL
´ïµ½±àдÎ޽ű¾µÄ
JSP
Ò³Ãæ¡£
JavaWeb
µÄѧϰ£¬ÕæÕýµÄÈÃÎÒÃǽӴ¥µ½ÁËÈÕºó¹¤×÷ÖÐһЩÏîÄ¿µÄ¿ª·¢Á÷³Ì£¬Éè¼ÆģʽÒÔ¼°Ò»Ð©³£ÓõŤ¾ß¡£
½ñÌìÉϿκ󣬷ëÀÏʦҲûÓиøÎÒÃǽ²Ð¿Σ¬¶øÊǸøÎÒÃǽ²Á˹ºÎï³µµÄʵÏÖ£¬
¹ºÎï³µÒªµãС½á£º
1.
¶ÔÓÚÍøÉϹºÎï³µ¶øÑԾܾøÓû§µÄÿ´Î²Ù×÷¶¼Á¬½ÓÊý¾Ý¿â£¬ÕâÑù»á´ó´óÏûºÄ·þÎñÆ÷µÄ×ÊÔ´£¬ËùÒÔÎÒÃÇÓ¦¸Ã½«²Ù×÷Ïȱ£´æÔÚ·þÎñÆ÷µÄÄÚ´æÖÐÔÙÒ»´ÎÐÔдÈëÊý¾Ý¿â¡£
2.
ÔÚ·þÎñÆ÷Æô¶¯µÄʱºòÎÒÃÇÓ¦¸ÃÏÈ°ÑÊý¾Ý¿âÖÐËùÓеÄÎïÆ·ÐÅÏ¢Ò»´ÎÐÔ¶Áµ½
Context
ÖУ¬ÈÃÕâЩÐÅÏ¢×÷ΪһÖÖÈ«¾Ö±äÁ¿Ê¹Õû¸ö
WEB
³ÌÐò¹²Ïí¡£
3.
ÔÚ½øÐÐÊý¾ÝÇ¿ÖÆת»¯µÄʱºòÒª¿¼ÂÇÊý¾ÝµÄÄÚ´æ½á¹ûÊÇ·ñÒ»Ö£¬Èç²»ÄÜ°Ñ
String
Ç¿ÖÆת»¯³É
int
£¬Ö»ÄÜͨ¹ý°ü×°Àà½øÐвÙ×÷¡£
4.
¶ÔÓÚÊý¾Ý¿âµÄÁ¬½Ó£¬
DRIVER
Ö»ÊÇ
sun
¹«Ë¾ÌṩµÄÒ»¸ö½Ó¿Ú£¬¸÷´óÊý¾Ý¿â¹«Ë¾ÌṩÏàÓ¦µÄʵÏÖÀ࣬ÎÒÃÇÀûÓ÷´ÉäµÃµ½ÆäÀàµÄÄ£°å¡£
5.
´Óµã»÷¹ºÂòÉÌÆ·µ½½áÊø¹ºÂòҪʼÖÕÒª¹ºÎï³µ±£´æÔÚ
Session
ÖУ¬¶ø¹ºÎï³µÓÃÀ´²Ù×÷Ò»¸ö
HashMap<Integer,Product>
¡£µ±È»ÎÒÃÇÒ²¿ÉÒÔÖ±½Ó°ÑÕâ¸ö¼¯ºÏ·ÅÈë
Session
ÖУ¬µ«ÊÇÕâÑù¾Í²»ÄÜÌåÏÖ
Java
Öеķâװ˼Ïë¡£
6.
ÔÚ
JDBC
ÖÐ
PreparedStatement
ºÍ
Statement
µÄÑ¡ÔñÉÏ£¬¶ÔÓÚ¶¯Ì¬µÄ
sql
Óï¾ä£¨´øÓУ¿µÄÄÚÈÝ£©Ò»°ãÑ¡Ôñ
PreparedStatement
£¬ÒòΪ
PreparedStatement
Ö»±àÒëÒ»´Î£¬´ó´ó½ÚÔ¼ÁË×ÊÔ´¡£
7.
Ò»°ãÀ´Ëµ£¬Ò»¸ö²»Í¬µÄÇëÇóÐèÒªÒ»¸ö
Servlet
½ø
Ïà¹ØÎĵµ£º
ÃæÊÔʱºò¾³£»áÅöµ½µÄÒ»¸öÎÊÌ⣬¸øÄãÁ½¸ö¼Ì³Ð¹ØϵµÄjavaÀàµÄ´úÂ룬ÕâÁ½¸öÀàÖÐÓй¹Ôì·½·¨ºÍһЩ±äÁ¿£¬È»ºó»¹ÓÐһЩ·½·¨£¬·½·¨Àïͨ³£Óн«±äÁ¿Êä³öµÄÓï¾ä¡£ÕâÀàÎÊÌâÖ÷Òª¿¼²ìÎÒÃǶԸ¸Àà×ÓÀà³õʼ»¯Ë³ÐòµÄÁ˽âÇé¿ö¡£
ÕâÀïÎÒÃÇÖ÷ÒªÌÖÂÛϾ²Ì¬³õʼ»¯¿éÕâÖÖÇé¿ö¡£
......
¼òµ¥µÄ¾Ñé×ܽá
ϵͳ»·¾³
OS—UnixϵµÄSolaris£¨¥½¥é¥ê¥¹£©
Langrage—java1.3
Framework—interstageV5£¨¸»Ê¿Í¨µÄ£©http://software.fujitsu.com/jp/manual/b293c34h0.html
DB—Oracle10g
¿ª·¢¹¤¾ß
IDE eclipse2.1 ×¢£º¹Å¶
tera term UnixϵͳµÄlogin tool
Framework interstageV5ÏÖÔ ......
java.lang.Object ÌṩÁËÒ»¸ötoString()µÄ·½·¨£¬µ«Êµ¼ÊÉÏÕâ¸ö·½·¨·µ»ØµÄÍùÍù²»ÊÇÎÒÃÇÐèÒªµÄ£¬Ëü·µ»ØµÄÊÇÀàÃû¼ÓÉÏ“@”¼ÓÉÏÊ®Áù½øÖƵÄhashÖµ¡£ÕâÏÔÈ»²»ÊÇÎÒÃÇÏëÒªµÄ£¬ËùÒÔ±ØÐëÖØÔØtoStringº¯Êý¡£
ºÜ¼òµ¥µÄÀý×Ó£¬ÈçÏÂ
System.out.println("Failed to connect: " + phoneNumber);
Èç¹û²»ÖØÔØ£¬ÔòÓÐ
Failed to co ......
ÓëÆäËüÀ಻ͬ£¬compareTo·½·¨²¢²»ÊÇOjbectÖеķ½·¨£¬ËüÊÇComparable½Ó¿ÚÖÐΨһµÄ·½·¨¡£Í¨¹ýʵÏÖComparable½Ó¿Ú£¬¿ÉÒÔËüÄܹ»×ÔÈ»ÅÅÐò¡£
ÅÅÐò£¬Arrays.sort(a); ¾ÍOKÁË¡£
ÊéÉÏÌáÁËÒ»¸öÇÉÃîµÄ·½·¨£¬ÓÃÀ´Ïû³ýÖظ´µÄ×Ö·û´®¡£ËüÓÃÁËÒ»¸öSet¼¯ºÏÀ´¹ýÂËÖظ´µÄ×ֶΡ£
public class WordList {
&n ......