protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		
		//SELECT̍쐬
		String sql = "SELECT message_id,message_title,message," +
					"user_name,entry_date" +
					" FROM message_tb" +
					" ORDER BY entry_date";
		
		//^sbZ[W
		String outMessage = "";
		String data = "";
		int rows =0;
		
		//ڑ
		String database = "jdbc:postgresql://192.168.30.55/val00262db";
		String user = "val00262";
		String password = "val262db";
		
		//RlNV錾
		Connection connection = null;
		Statement statement = null;
		//ڑ{ݏ
		try {
			//JDBChCo̓o^
			Class.forName("org.postgresql.Driver").newInstance();
			//JDBCoRŃf[^x[X֐ڑ
			connection = DriverManager.getConnection(database, user, password);
			//SQLf[^x[X֑邽߂̃IuWFNg𐶐
			statement = connection.createStatement();
			
			//SELECT̎s
			ResultSet resultSet = statement.executeQuery(sql);
			
			//ʂ̎o
			while(resultSet.next()){
				data += "<tr>";
				data += "<td>" + resultSet.getString("message_id") + "</td>";
				data += "<td>" + resultSet.getString("message_title") + "</td>";
				data += "<td>" + (resultSet.getString("message")).replace("\r\n", "<br>") + "</td>";
				data += "<td>" + resultSet.getString("user_name") + "</td>";
				data += "<td>" + resultSet.getString("entry_date") + "</td>";
				data += "</tr>";
				//JEg
				rows++;
 			}
			// ǂݎ萬
			outMessage = "bZ[W" + rows + "o܂";
		} catch (Exception e) {
			// ǂݎ莸s
			outMessage = "bZ[W̎oɎs܂B<br><br>" + e;
		}
		
		//ؒf
		try {
			//f[^x[X̐ؒf
			if (statement != null) statement.close();
			if (connection != null) connection.close();
		} catch (Exception e) {
			//ؒfs
			outMessage = "f[^x[X̐ؒfɎs܂B<br><br>" + e;
		}
		
		//ZbV̕
		HttpSession session = request.getSession();
		
		//ZbVIuWFNglogino
		boolean login = false;
		if (session.getAttribute("login") != null) {
			login = (Boolean)session.getAttribute("login");
		}
		
		//ZbVIuWFNgdisplayUserNameoB
		String displayUserName = (String)session.getAttribute("displayUserName");
		
		//OCsFOCʂ
		if (!login) {
			response.sendRedirect("login.html");
		}
		
		//LbVNA
		response.setHeader("Cache-Control",
				"no-store,no-cache, must-revalidte");
		response.addHeader("Cache-Control",
				"post-check=0, pre-check=0");
		response.setHeader("Pragma", "no-cache");
		response.setDateHeader("Expires", 0);
		Date today = new Date();
		response.setDateHeader("Last-Modified", today.getTime());
		
		//o͐̃Reg^CvZbg
		response.setContentType("text/html; charset=UTF-8");
		
		//o͐oAϐoutɑ
		PrintWriter out = response.getWriter();
		
		//o͓eZbg
		out.println("<html><body>");
		out.println("Login: <b>" + displayUserName + "</b>");
		out.println("<hr>");
		out.println("<a href=\"Menu\">yj[z</a>");
		out.println("<a href=\"Logout\">yOAEgz</a>");
		out.println("<hr>");
		out.println("bZ[Wꗗ<br><br>");
		out.println("<table border=1>");
		out.println("<tr bgcolor=\"#CCCCCC\">");
		out.println("<td>ID</td>");
		out.println("<td>^Cg</td>");
		out.println("<td>bZ[W</td>");
		out.println("<td>[U[</td>");
		out.println("<td>o^</td>");
		out.println("</tr>");
		out.println(data);
		out.println("</table>");
		out.println("<br><br>");
		out.println(outMessage);
		out.println("</body></html>");
		//o͂
		out.close();
	}