¥Õ¥é¥ó¥¹ÎÁÍýŹŽ¥¥Ý¥ï¥óŽ¥¥É¥¥Ž¥¥Ç¥Ñ¡¼¡¡£Ð£ï£é£î£ô  £ä£å  £ä£å£ð£á£ò£ô
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 = "¡¦»è£áŽÏ€¡¦»ç¡¦çéºæ¡¦Dä¿¡¦¡¦¡¦T¡å¡¦(ç¾°ê\¡¦#¢ã¥â­ã)¡¦§çÍíéã)¡¦¡¦¥î¡¦¡¦ç¥²ä#¡¦¥îa€¡¦»ç³÷¡¦»èµîp¢ä#¡¦½í)¡¦»ã¥î¡¦¡¦ 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")) { %>
 
¡¡