就用JSP来做个程序了。麻烦大家上心了。

解决方案 »

  1.   

    抓数据,你需要的是一个爬虫
    http://www.jopener.cn/category/crawlers/但是你只抓固定页面,不需要这个,用http-client也行从html提取数据,需要用html-parsers
    http://www.jopener.cn/category/html-parsers/如果数据简单你自己写代码解析也行
      

  2.   

    直接的部分代码,
    从网页获取数据    try {
            // Create a URL for the desired page
            URL url = new URL("http://hostname:80/index.html");
        
            // Read all the text returned by the server
            BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
            String str;
            while ((str = in.readLine()) != null) {
                // str is one line of text; readLine() strips the newline character(s)
            }
            in.close();
        } catch (MalformedURLException e) {
        } catch (IOException e) {
        }然后解析自己看着办吧:)