in = new BufferedReader(new InputStreamReader (sock.getInputStream(),"8859_1"));
out = new DataOutputStream(sock.getOutputStream());
result = in.readLine();
System.out.println(result);
out.writeBytes("HELO "+ "bootcool"+"\n");
System.out.println("HELO "+ InetAddress.getLocalHost ().getHostAddress()+"\n");
result = in.readLine();
System.out.println(result);
System.out.println("**********");
out.writeBytes("USER "+ "********"+"\n");
result = in.readLine();
System.out.println(result);
out.writeBytes("PASS "+ "*********"+"\n");
result = in.readLine();
System.out.println(result); out.writeBytes("STAT "+"\n");
out.writeBytes("UIDL "+"\n");
result = in.readLine();
System.out.println(result);
out.writeBytes("LIST "+"\n");
result = in.readLine();
System.out.println(result);
out.writeBytes("RETR 1");
result = in.readLine();
System.out.println(result);可是这里的输出却是null不知如何才能得到正文的内容呢?
out = new DataOutputStream(sock.getOutputStream());
result = in.readLine();
System.out.println(result);
out.writeBytes("HELO "+ "bootcool"+"\n");
System.out.println("HELO "+ InetAddress.getLocalHost ().getHostAddress()+"\n");
result = in.readLine();
System.out.println(result);
System.out.println("**********");
out.writeBytes("USER "+ "********"+"\n");
result = in.readLine();
System.out.println(result);
out.writeBytes("PASS "+ "*********"+"\n");
result = in.readLine();
System.out.println(result); out.writeBytes("STAT "+"\n");
out.writeBytes("UIDL "+"\n");
result = in.readLine();
System.out.println(result);
out.writeBytes("LIST "+"\n");
result = in.readLine();
System.out.println(result);
out.writeBytes("RETR 1");
result = in.readLine();
System.out.println(result);可是这里的输出却是null不知如何才能得到正文的内容呢?
关于JSP的介绍,请到JSP板块,那里有我和其他人讨论的内容,我想你会了解很多的。
B/S是C/S的一种技术提升,将是未来大型软件的发展方向。
还要在B/S方式下,只能是用java.关于运行平台,我想先在NT上,WebServer可能用IIS,将来可能移植到UNIX下,请大家参谋一下,是否可行?