【求助】JSP问题。。。
Function 1:
Grab content from Animenfo.com and generate corresponding tables in mysql.
1. Grab content from
http://animenfo.com/statistic/top.php?type=anime
And the corresponding anime show links
Parse the HTML to generate the following
2. Create mySQL table with following columns:
Rank
Genres
Year Published
Title
Category
Description
ImageLink
3. (Optional): Save images at local server and change ImageLink to local path
You need to use JSP (NOT servlet, but JSP page can embed java code) to parse HTML and create table in database. So one JSP does everyone, you don’t need other .java file. Some contents are within <td> label. Other contents for a particular record, you need look for them through the title link. For second step, you can use SQL language to create the table. Rank can be the primary key (re-number it if duplicated). The table needs to compatible with UTF-8 for character set.
这是别人要求做的一个小工具的说明书,大概的意思我都读懂了,但是我不太明白这个工具的作用,请达人来解释一下,小弟菜鸟一个。
{{
相关问答:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jas ......
<%@page language="java" contentType="text/html;charset=gb2312" import="java.sql.*"%>
<jsp:useBean id="db" class="wang.connectDB"/>
< ......
<html><head><title>[@title]</title>
<meta http-equiv=Content-Type content="text/html; charset=gb2312">
<script language='javascript'>
function diyCheck ......