HOME EmailToYUYU

Using Java MD5


public static String digest = "";

    public static final String encrypt(String 
          password) {
        if (digest .trim().equals("")) {
            try {
               digest = MessageDigest.getInstance("MD5");
            } catch (NoSuchAlgorithmException e) {
                System.err.println("
                         Failed to load the MD5 
                         MessageDigest. ");
               e.printStackTrace();
            }
        }
//        digest .update(digest );
         return password;
    }

Just learning Servlet

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class HelloWorld extends HttpServlet {

    public void doGet(HttpServletRequest request, 
HttpServletResponse response)
    throws IOException, ServletException
    {
        response.setContentType("text/html");
        PrintWriter out = response.getWriter();
        out.println("");
        out.println("");
        out.println("");
        out.println("");
        out.println("");
        out.println("
Hello World!
");
        out.println("");
        out.println("");
    }
}

How to deploy the Java Pet Store For NetBeans

STEP 1:install NetBeans and JDK
STEP 2:install Sun System Application Server 9
STEP 3:Open the Java Pet Store project
STEP 4:register Sun System Application Server 9 
       at NetBeans
STEP 5:find javaee.home and change the value for 
      your Sun System Application   Server 9
STEP 6:OK,deploy then Java Pet Store

My Plan

I want to be done my plan after tow months!

Java BluePrints's Code

I want to be done my plan after tow months!

2006 at BeiJing

Chen Yong Can Chen Yong Can Chen Yong Can


1