Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

¹ØÓÚxmlµÄ²Ù×÷£¬Java±¨xmlÎļþ²»´æÔڵĴíÎó ¼±£¡

  DocumentBuilderFactory dbf=DocumentBuilderFactory.newInstance();
    DocumentBuilder db=dbf.newDocumentBuilder();
    File fl=new File("d:/xml/userdatabase.xml");
    doc =db.parse(fl);
    Element root=(Element)doc.getElementsByTagName("database").item(0);
    NodeList nl=root.getElementsByTagName("user");

ÉÏÊöµÚËÄÐУ¬±¨Õâ¸ö´í£¬DÅÌϵÄÎļþÊÇ´æÔÚµÄ £¬²»½â £¿Çë¸ßÊÖÖ¸µã
Exception in thread "main" java.io.FileNotFoundException: d:\xml\userdatabase.xml (Ö¸¶¨¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¤¬見¤Ä¤«¤ê¤Þ¤»¤ó¡£)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream. <init>(FileInputStream.java:106)
at java.io.FileInputStream. <init>(FileInputStream.java:66)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:973)
at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:184)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:798)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)


Ïà¹ØÎÊ´ð£º

Java RandomAccessFile дÈëtxtÎļþ - Java / Java SE

ÓÃRandomAccessFileдÈëTXTÎļþ²é¿´Ê±ÊÇÂÒÂ룬ÇëÎÊÓÐʲô·½·¨¿ÉÒÔд³É¿É¶ÁµÄÎļþ£¬²»ÊÇÓÃÆäËûµÄÎļþ²Ù×÷£¬¾ÍÊÇÖ»ÓÃRandomAccessFileµÄ·½·¨ÊÇ·ñ¿ÉÒÔʵÏÖ£¿
Java code:
import java.io.*;
public class RandomAcce ......

java³ÌÐòÁ¬½ÓSQlServerµÄÎÊÌâ - Java / Java SE

import java.sql.Connection;
import java.sql.Date;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class QueryTest&n ......

Ï£ÍûºÃÐÄÈ˰ï°ïÎÒ£¬ÓйØÊÖ»úqq2009µÄjava°æ

ÎÒÏ£ÍûÔڱ༭ÎÄ×Öºó°Ñ·¢Ëͼü¸Äµ½ÆÁÄ»Öм䣬¾ßÌå˵¾ÍÊÇ
ÔÚkb.classÖеIJ¿·Ö×÷³öÐÞ¸Ä


²¿·Ö´úÂ룺
V = new TextBox(ld.a(383), "", 190, 0);
        X = new Comma ......

¹ØÓÚjsp ÒýÈëºóÒ³ÃæÌø×ªµÄÎÊÌâ - Java / Java EE

ÎÊÌâÊÇÕâÑùµÄ£º
   
ÎÒÓÐÒ»¸öÎļþnagiv.jsp ÁíÒ»¸öÎļþfailure.jsp°üº¬Ëû£¬Í¬Ê±nagivÎļþÖÐÓÐÒ»¸ö¿ÉÒÔÌø×ªµ½yy.jspµÄcommandButton£¬µ«ÊÇÎÒ½«failureÖеã»÷nagivÖеÄÄĸöcommandButton£¬Ò²Ãæ²»»áÌø×ª ......

Çójspµç×ÓÉÌÎñÍøÕ¾Ô´Âë - Java / Web ¿ª·¢

Ïë×öÒ»¸öjspµÄµç×ÓÉÌÎñÍøÕ¾£¬ÏëÕÒһЩԴ´úÂ룬ÇëÎÊÄǸöÍøÕ¾ÓкõÄ×ÊÔ´¡£Ð»Ð»£¡
ËÑË÷Ï塃 ¿ªÔ´µÄÒ²ÓÐ

csdn¾ÍÓÐÏàËÆµÄÔ´Â룬¥Ö÷ËÑÒ»ÏÂ

java ¿ªÔ´´óÈ«


¸ÄÄ£°åºÃÂ鷳Ŷ£¬»¹²»Èç×Ô¼ºÐ´¸öÁËÄØ

jf

¶¥Ò» ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ