¹ØÓÚÓÃdom4j¶ÔxmlµÄ¶ÁÈ¡ - Java / Java EE
http://www.blogjava.net/bolo/archive/2009/01/04/221068.html
ÕâÊÇÔÎÄ£¬ÀïÃæÓÐÒ»¸öÀý×Ó£¬ÎÒÏÂÔØÏÂÀ´ºóµ¼Èëµ½myeclipseÀïÃæÈ¥ÒÔºó³öÏÖÈçϵĴíÎóÌáʾ£¬²»ÖªÊǺÎÔÒò£¿
XMLÅäÖÃÎļþδ¼ÓÔسɹ¦£¬Çë¼ì²é
java.lang.ExceptionInInitializerError
Caused by: java.lang.RuntimeException: org.dom4j.DocumentException: null Nested exception: null
at com.demo.database.DataBaseConnect.load(DataBaseConnect.java:50)
at com.demo.database.DataBaseConnect.<clinit>(DataBaseConnect.java:36)
Caused by: org.dom4j.DocumentException: null Nested exception: null
at org.dom4j.io.SAXReader.read(SAXReader.java:484)
at org.dom4j.io.SAXReader.read(SAXReader.java:343)
at com.demo.database.DataBaseConnect.load(DataBaseConnect.java:46)
... 1 more
DataBaseConnect.java
°ÑÕâ¸öÀàµÄ´úÂëÌù³öÀ´¿´¿´
package com.demo.database;
import java.io.InputStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.HashMap;
import java.util.List;
import org.dom4j.Document;
import org.dom4j.Element;
import org.dom4j.io.SAXReader;
import com.demo.util.ClassUtils;
import com.demo.util.Constant;
/**
* Êý¾Ý¿âÁ¬½Ó¹ÜÀí
* @author ²¤ÂÜ´óÏó
* @version 1.0
*/
public class DataBaseConnect {
private static Element coreMo
Ïà¹ØÎÊ´ð£º
JSPÒ³ÃæÖÐÓжà¸öradio°´Å¥
JSPÒ³Ã潫²ÎÊýPOST¸øservlet
ÒªÇóÈçÏÂ;
1.Ñ¡ÔñÒ»¸öradio£¬µ÷ÓÃservlet servletÖиù¾Ý²ÎÊýµ÷ÓÃÆäËû½Ó¿Ú£¬³ý·ÇÑ¡ÖиÃradio²¢µã»÷JSPÖеÄʵР......
ÎÒÔÚ javaºËÐļ¼ÊõÉÏ ¿´ÁËÒ»¸ö ÀûÓà Java socket emailµÄÀý×Ó ¿ÉÊÇÔõôҲ ²»³É¹¦ Ϊʲô£¿
Ô´Âë
Java code:
package cn.com.test.email;
import java.awt.GridBagLayout;
import java.awt.event.Action ......
Private Sub Command1_Click()
Dim MyString() As String
Open "a.xml" For Binary As #1 ' ´ò¿ª¸Õ´´½¨µÄÎļþ¡£
ReDim MyString(LOF(1) - 1)
Put #1, , MyRecord ' ¶ÁÈëËùÓÐ×Ö·ûµ½±äÁ¿ÖÐ ......
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 52 in the jsp file: /vip_info.jsp
ÕË cannot be resolved
49: <table border="1& ......