K.Maebashi's BBS¡¡Åê¹Æ¥Õ¥©¡¼¥à
¥Ï¥ó¥É¥ë̾
·ï̾
Link
>>¢¨¤³¤³¤¬¸¶°ø¤«¤â¤·¤ì¤Þ¤»¤ó¡£ >>ShowBBS.java¡¢PostBBS.java¡¢Message.java¤Î3¤Ä¤Ï¡¢"chapter3"¤È¤¤¤¦¥Ñ¥Ã¥±¡¼¥¸¤ÎÃæ¤Ë¤¢¤ê¤Þ¤¹¡£ > >¤Ç¤¢¤ì¤Ð¡¢.class¥Õ¥¡¥¤¥ë¤Ï > >>C:\Henacat_0_1\webapps\makeTcpServer\chapter3 > >¤Î²¼¤ËÃÖ¤¤¤¿¤¦¤¨¤Ç¡¢Main.java¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤·¤Þ¤¹¡£ > >WebApplication app = WebApplication.createInstance("makeTcpServer"); >app.addServlet("/ShowBBS", "chapter3.ShowBBS"); >app.addServlet("/PostBBS", "chapter3.PostBBS"); > >¤½¤Î¤¦¤¨¤Ç¡¢ > >http://localhost:8001/makeTcpServer/ShowBBS > >¤òᤱ¤Ðɽ¼¨¤Ç¤¤ë¤È»×¤¤¤Þ¤¹¡£ > >Á°²ó½ñ¤¤¤¿¤È¤ª¤ê¡¢addServlet¤Î >Âè1°ú¿ô¤Î"/ShowBBS"¤¬¥Ñ¥¹¡¢¤Ä¤Þ¤ê°Ê²¼¤ÎURL¤ÎºÇ¸å¤ÎÉôʬ¡¢ >http://localhost:8001/makeTcpServer/ShowBBS >¤ò»Ø¤¹¤Î¤Ç¡¢Âè1°ú¿ô¤òÊѤ¨¤Ê¤±¤ì¤Ð¡¢Ã¡¤¯URL¤Ï¤³¤Î¤Þ¤Þ¤Ç¹½¤¤¤Þ¤»¤ó¡£ > >Âè2°ú¿ô¤¬¥¯¥é¥¹Ì¾¤Ç¤¹¡£¥Ñ¥Ã¥±¡¼¥¸¤ò»È¤Ã¤Æ¤¤¤ë¤Ê¤é¥Ñ¥Ã¥±¡¼¥¸Ì¾¤¬Íפê¤Þ¤¹¡£ >¤Ä¤Þ¤ê´°Á´¸ÂÄꥯ¥é¥¹Ì¾¡Öchapter3.ShowBBS¡×¤Ë¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ > >>>¤Ä¹¤¯¤Ê¤Ã¤Æ¤â¹½¤¤¤Þ¤»¤ó¤Î¤Ç¡¢½¤Àµ¤·¤¿¥¯¥é¥¹¤Î¥½¡¼¥¹¤ò´Ý¤´¤È¤³¤³¤ËŽ¤Ã¤Æ¤¯¤À¤µ¤¤¡£ > >¤¢¡¢¤¹¤ß¤Þ¤»¤ó¡£¤³¤³¤Ï¡¢½¤Àµ¤·¤¿·Ç¼¨ÈĤΥ½¡¼¥¹¥³¡¼¥É(ShowBBS.java¤È¤«PostBBS.java¤È¤«) >¤Î¤Ä¤â¤ê¤Ç¤·¤¿¡£¤³¤ì¤Çư¤¯¤È»×¤¤¤Þ¤¹¤¬¡¢¤Þ¤Àư¤«¤Ê¤¤¤è¤¦¤Ç¤¢¤ì¤ÐŽ¤Ã¤Æ¤¯¤À¤µ¤¤¡£ > >¤Ê¤ª¡¢ÅöÁ³¤Ç¤¹¤¬¡¢ShowBBS.java¤ÎÃæ¤Î > >out.println("<form action='/testbbs/PostBBS' method='post'>"); > >¤È¤«¡¢PostBBS.java¤ÎÃæ¤Î > >response.sendRedirect("/testbbs/ShowBBS"); > >¤È¤«¤Ï¡¢¤½¤ì¤¾¤ìmakeTcpServer¤Ëľ¤¹É¬Íפ¬¤¢¤ê¤Þ¤¹¡£Ç°¤Î¤¿¤á¡£ > >
spam¤è¤±¤Î¤¿¤á¡¢¤³¤³¤Ë¡Ö¤Û¤²¤Ô¤è¡×¤ÈÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£
ºï½ü¥Ñ¥¹¥ï¡¼¥É :
¥¯¥ê¥Ã¥¯¡ª