小弟写了一段这样的代码
Format format= Format.Field
format.setEncoding( "zhs32gb18030 ");
format.setIndent( " ");
XMLOutputter XMLOut = new XMLOutputter(format);
但是报错,
"ActionBigtraderpt.java ": cannot resolve symbol: method format ()in class java.text.Format at line 93, column 29
"ActionBigtraderpt.java ": cannot resolve symbol: method setEncoding (java.lang.String)in class java.text.Format at line 94, column 8
"ActionBigtraderpt.java ": cannot resolve symbol: method setIndent (java.lang.String)in class java.text.Format at line 95, column 8
"ActionBigtraderpt.java ": cannot resolve symbol: constructor XMLOutputter (java.text.Format)in class org.jdom.output.XMLOutputter at line 96, column 29
我看了一下我IMPORT的包是这样的
import java.io.IOException;
import java.io.*;
import org.jdom.*;
import org.jdom.output.*;
import java.text.*;
import java.text.Format;
import java.text.Format;
import java.util.*;
import java.util.ArrayList;
import java.util.List;
import java.sql.*;
import javax.servlet.http.*;
import com.aegon_cnooc.db.DBCtrl;
import com.aegon_cnooc.modul.*;
import com.aegon_cnooc.common.util.*;
import java.util.Collection;
实在不知道那里出错了 郁闷了很久了请各位大大 指点一下
------解决方案--------------------
不知道,感觉是没有找到某个类