¥Õ¥é¥ó¥¹ÎÁÍýŹŽ¥¥Ý¥ï¥óŽ¥¥É¥¥Ž¥¥Ç¥Ñ¡¼¡¡£Ð£ï£é£î£ô  £ä£å  £ä£å£ð£á£ò£ô
TOP ŹÊÞ°ÆÆâ ¥á¥Ë¥å¡¼¾Ò²ð ¥¤¥Ù¥ó¥È¾ðÊó ¥¹¥¿¥Ã¥Õ¾Ò²ð ¤ªÌä¹ç¤» ·Ç¼¨ÈÄ ¥ê¥ó¥¯
Æü»ï

    ¥Õ¥é¥ó¥¹ÎÁÍýŹ¥Ý¥ï¥ó¥É¥¥¥Ç¥Ñ¡¼

<%@ page contentType= "text/html; charset=EUC-JP" %> <%@ page import="java.util.*" %> <%@ page import="java.io.*" %> <%@ page import="java.net.*" %> <%@ page import="java.text.*" %> <%@ page import="java.io.BufferedReader" %> <% Diary[] diary_ = null; String password = "1011"; String ACTION = "RETURN"; String errorMessage = ""; String jspName = "page_diary.jsp"; String RequestURL = request.getRequestURL().toString(); URL url = new URL(RequestURL); String path = application.getRealPath(url.getPath()); path = path.substring(0,path.length() - jspName.length()); String file_name = path + "diary_list.txt"; if(request.getParameter("ACTION") != null) { ACTION = request.getParameter("ACTION"); } if(ACTION.equals("DISPENTRY")) { String pass = request.getParameter("PASSWORD"); if(pass == null) { ACTION = "RETURN"; } else if(!pass.equals(password)) { errorMessage = "¡¦»è£áú¼Ž­!å°¡¦çµ¡¦¥î¡¦Þä#»ã¥çáã»æºª#祲ä#§çÍíéêÎåËï#çãÂ䎽¡¦¡¦çµ¡å¡¦(¡¦È㡦¡¦#»ç¡¦¡¦»ç´«çð²ã¥î¥ã»ã¥çáè±ï½©¡¦»Ñ¢ä#­Ïá硦¡¦»ç¡¦¡¦»ã¥î­êŽ©¡¦»ã¥î­ã)¡¦¡¦½í)¡¦»Ñ¡¦#¼Êçå¤ç#¡½¡¦¼Å¡¦çµ¡è¡¦å²¡¦çâ¤åÅèáã»ç¡¦¡¦¡¦¥î£è½æ¡¦¡¦»ï¡¦ï½¡¦#»ã¥î¥ã¼åç桦¿ã¡¦¼Å¡¦»çÇî¥ã»ç¹¿å³¡¦ä¹Îå"Âä#¼Ö¡¦»è§âåó°è¡¦¡¦¡¦¡¦»ã¥ááè±ï½©¡¦»ç¡¦¡¦¡¦¡¦æ¨Çµáæ´æ¡í)¡¦»ç¡¦¡¦¡¦¥â£é¡¦·ø)¡¦»ç¡¦¡¦¡¦¥î¥ã»ã¥î­êWЭ¡¦»å¡éëåÂ䎽¡¦¡¦»æ·ø)¡¦»ç´«¡¦¥è¡¦áæÜä#»çÍíéã)¡¦¤ã³âáã»ï»îç桦¶¡*Áß#¡¦»çÇî¥ã»çÍèáã¼Ù¡¦»ã¥çŽÏ¡¦¡¦»å½èT¡¦¼Å祲ä#¡¦¥î£é¡¦¥çáꡦ¡¦»ç´«¡¦»é·ú亥ã¥î­í>¡¦»è±áßè½æ¡¦¡¦»ï¼±¡¦¼öá硦¥îŽÇçèºåŽ¸¸ÌÁß¡¦Èå0¾ã¥çú»á¦æ§â¥ã»æ¿ç¡Ž¦€è¼¡¦¡¦»ç£ê¡¦»è§â¡¦»è¡¦T¡¦ç´Òä#»è¡¦áã»ã¥çáã£ã¥î¥ã»ç¡¦H¡¦»å§¿á硦¡¦»æ·ø)¡¦»ç¡¦¡¦¡¦¥â£é¡¦·ø)¡¦»ç¹å¡¦»è¡¦á硦¥îŽÇ¡¦»ç´«¡¦»ã¥î¥ì»ã¥î¡¦¡¦¡¦¡¦»ã¥çú»á¦Ž¦#»ç³÷¡¦Êä#£è¡¦¡¦¡¦­à¡¦¡¦¡¦»ã¥î¥ã»ã¥î¡¦¡¦¡¦»ç¡¦¡¦¡¦¥î¥ã»ã¥î­êŽ©¡¦»ã¥î¥ã»ã¥çáã£ç¡¦¡¦¡¦¡¦½ïH¡¦»ç¡¦¡¦¡¦¥â­êW¡¦»ã¥î¥ê¥æ²¿;¡¦ÈæSÈä#¡¦¥â­êŽ©¡¦»ã¥î¥ã»ã¥î½ï¿©¡¦»ç´«çñ¶äŽ¸¡¦#»è£ááã»èµâ¡¦²æ,¿ã¥î½ïF#¡¦»ç¡¦¡¦§èÕíŽÒF#¡¦»ç´«¡¦§ã¥î­ã)¡¦­Ï¡¦¼Åç¸Ü桦ú¼Ž­'è¾±é¿ôæ½Þä#¡¦¥â¥ã»æ·ø)¡¦»ç¡¦¡¦¡¦¥â¥ã»ã¥ááã»â±åá㡦³äŽÆ¡¦»ç¡¦¡¦¡¦½í)¡¦»ã¥î¥ã¢ã¥î¥â¡¦~壡¦ç´¡¦µä¥ã»ç¡¦¡¦¡¦¥â­ã)¡¦¡¦¡¦ŽÒH¡¦»ç³¸Ð­¡¦ºä#»ã¥î­êÎå@¡¦¡¦»ç´«¡¦»ã¥î¥ã»ã¥áú¼Ž­)¡¦»å ¡¦¡¦»ç³¸Ð­¡¦»åÁåéøºä#»ã¥çú»á¦¦­é¥â¡¦¡¦²èÍ¡¦òÀŽ¯ ACTION = "LOGIN"; } } if(ACTION.equals("ADD")) { diary_ = getDiary(file_name,"\n"); writeFile(diary_,request,file_name); ACTION = "RETURN"; } if(ACTION.equals("DELETE")) { diary_ = getDiary(file_name,"\n"); delete(diary_,request,file_name); ACTION = "RETURN"; } if(ACTION.equals("LOGIN")) { %>
 
¡¡