Java ¸´Ï°±Ê¼Ç_µÚ5Ìì
doGet()ºÍdoPost()
JspÒ³ÃæµÄform±êÇ©ÀïµÄmethodÊôÐÔΪgetʱµ÷ÓÃdoget(0,
Ϊpostʱµ÷ÓÃdoPost()
Jsp
JspÒýÇæ(Tomcat)ÏȽ«jspÎļþת»»Îªservlet£¬È»ºóµ÷ÓÃJava±àÒëÆ÷javac.exe¶Ô
Servlet´úÂë½øÐбàÒ룬°ÑËü±ä³É×Ö½ÚÂ루.classes£©Îļþ¡£È»ºóÔÙµ÷ÓÃjavaÐéÄâ»ú
Ö´ÐиÃ×Ö½ÚÂëÎļþ£¬×îºó½«½á¹û·µ»Ø¸øWebä¯ÀÀÆ÷¡£
Html×¢ÊÍ£º<!- -¿Í»§¶Ë¿ÉÒÔÔÚÔ´ÂëÖп´µ½- - >
Jsp×¢ÊÍ£º<%-- ¿Í»§¶ËÔ´Âë¿´²»µ½ --%>
<% ! int a=0; %> <%! String s = new String(“hello”) %> //ÒԷֺŽáÊø
IncludeÖ¸Á<%@ include file=”/footer.jsp” %>
Include¶¯×÷£º<jsp:include page=”baidu.jsp” />
±í´ïʽ£º<%=±í´ïʽ %>
JspµÄ¾Å¸öÄÚÖÃ(implicit)¶ÔÏó£ºout¡¢request¡¢response¡¢session¡¢application¡¢exception¡¢
Config¡¢page¡¢pageContext
Ïà¹ØÎĵµ£º
ʲôÊÇÁ÷£º
Á÷ÊÇÒ»¸ö³éÏóµÄ¸ÅÄî¡£µ±Java³ÌÐòÐèÒª´ÓÊý¾ÝÔ´¶ÁÈ¡Êý¾Ýʱ£¬»á¿ªÆôÒ»¸öµ½Êý¾ÝÔ´µÄÁ÷¡£Êý¾ÝÔ´¿ÉÒÔÊÇÎļþ£¬ÄÚ´æ»òÕßÍøÂçµÈ¡£Í¬Ñù£¬µ±³ÌÐòÐèÒªÊä³öÊý¾Ýµ½Ä¿µÄµØÊ±Ò²Ò»Ñù»á¿ªÆôÒ»¸öÁ÷£¬Êý¾ÝÄ¿µÄµØÒ²¿ÉÒÔÊÇÎļþ¡¢ÄÚ´æ»òÕßÍøÂçµÈ¡£Á÷µÄ´´½¨ÊÇΪÁ˸ü·½±ãµØ´¦ÀíÊý¾ÝµÄÊäÈëÊä³ö¡£
Á÷·ÖΪ×Ö½ÚÁ÷ºÍ×Ö·ûÁ÷¡£×Ö½ÚÁ÷Ò²³ÆÎªÔÊ ......
ºÜ¶àÅóÓÑÔÚJava¿ª·¢ÖУ¬Ê¹ÓÃOracleÊý¾Ý¿âµÄʱºò£¬¾³£»áÅöµ½ÓÐORA-01000: maximum open cursors exceeded.µÄ´íÎó¡£
ʵ¼ÊÉÏ£¬Õâ¸ö´íÎóµÄÔÒò£¬Ö÷Òª»¹ÊÇ´úÂëÎÊÌâÒýÆðµÄ¡£
ora-01000: maximum open cursors exceeded.
±íʾÒѾ´ïµ½Ò»¸ö½ø³Ì´ò¿ªµÄ×î´óÓαêÊý¡£
ÕâÑùµÄ´íÎóºÜÈÝÒ׳öÏÖÔÚJava´úÂëÖеÄÖ÷ÒªÔÒòÊÇ£ºJava´úÂëÔÚÖ´ ......
JavaÖеķÃÎÊȨÏÞ¿ØÖÆ·ûÓÐËĸö.
×÷ÓÃÓò_____µ±Ç°Àà____ͬһpackage___×ÓËïÀà____ÆäËûpackage
public______√___________√__________√___________√
protected___√___________√__________√___________×
friendly_____√___________√__________×________ ......
1)¾²Ì¬±äÁ¿±¾Éí²»»á±»»ØÊÕ
2)¾²Ì¬±äÁ¿ËùÒýÓõĶÔÏóÊÇ¿ÉÒÔ»ØÊյġ£
µÚÒ»µã´ó¼ÒÓ¦¸ÃûÓÐÒÉÎÊ£¬ÏÂÃæÎÒÖ¤Ã÷µÚ£²µã£º
¿´ÏÂÃæµÄÀý×Ó¼°×¢ÊÍ¡£×Ô¼º¿ÉÒÔÔËÐÐÊÔÒ»ÏÂ,¡¡×¢Òâ¼ÓÉÏ-verbose:gc²ÎÊý
java -verbose:gc TestStaticGc
// TestStaticGc.java
public class TestStaticGc {
& ......
Õ⼸ÌìÔÚ¿´JAVA£¬Í¼Êé¹Ý½èµÄÒ»±¾JAVA¿ª·¢´óÈ«£¬Í¦ºñµÄÒ»±¾£¬ÄÚÈݺܶ࣬µ«²»Éî¡£°üÀ¨JAVAµÄ»ù±¾Óï·¨¡¢Ï̱߳à³Ì¡¢×ÀÃæ³ÌÐò¡¢Ö÷ÒªÀà¿â¡¢ÒÔ¼°ºóÃæJSP²¿·Ö¡£¿´ÁË5ÌìÁË£¬¸Õ°ÑJÏ߳̿´Íê¡£ÓÉÓÚ֮ǰѧ¹ýC++£¬ËùÒÔÇ°Ãæ»ù´¡Êý¾ÝÀàÐÍ£¬»ù±¾Óï·¨µÈµÈÖ»×ÅÖØ¿´¿´JAVA¶ÀÌØµÄµØ·½¡£ÒÔÏÂÊÇÎÒ¸öÈËÀí½â×ܽáµÄһЩJAVAÓëC/C++²»Í¬µØ·½¼°×Ô¼ºµÄ¶ÔJ ......