CheckCookieServlet

一个非常简单实用的检查用户浏览器是否支持cookie的servlet,不支持则给出输出提示。
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;

public class CheckCookieServlet extends HttpServlet {
 /**Process the HTTP Get request*/
 public void doGet(HttpServletRequest request, HttpServletResponse response) throws
ServletException, IOException {
   response.setContentType("text/html");
   PrintWriter out = response.getWriter();
   if (request.getParameter("flag")==null) {
     // the first request
继续阅读“CheckCookieServlet”

免费mysql数据库空间

机器太破装不了数据库,可没数据库又没法弄我的servlets,还好找个免费mysql空间。搞定。

存录备忘。
db4free.net
可惜没有免费的j2ee服务器,不然我少开个tomcat就省不少内存噢,

database name :kkdean

After confirming the link below, you have access to 2 MySQL database servers, one with MySQL 5.0 and one with MySQL 5.1. To access the MySQL 5.0 server, the host name is db4free.org and the port is 3306 (which is the default port for MySQL). To get access to the MySQL 5.1 server, the host name is also db4free.org, but you have to change the port to 3307. You can use phpMyAdmin on our website to log in to both servers.