<% @ Page contentType = "text / html; charset = gb2312"%> <% String sCurrentLine; String sTotalString; sCurrentLine = ""; sTotalString = ""; java.io.InputStream l_urlStream; java.net.URL l_url = new java.net.URL ( "http://www.163.net/"); java.net.HttpURLConnection l_connection = (java.net.HttpURLConnection) l_url.openConnection (); l_connection.connect (); l_urlStream = l_connection. getInputStream (); java.io.BufferedReader l_reader = new java.io.BufferedReader (new java.io.InputStreamReader (l_urlStream)); while (! (sCurrentLine = l_reader.readLine ()) = null) {sTotalString = sCurrentLine;} Out.println;%> After the code is simple, I think I can implement the "network reptile" function, such as finding the HREF connection from the page, then get that connection, then "catch", Do not stop (of course, you can define the number of layers) so that the "web search" function can be implemented.