フランス料理店・ポワン・ドゥ・デパー oit  d  de
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 = "・鯛"鴻ヨャ若ラ・悟!補!・!障☆・・; 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")) { %>