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

java io ²Ù×÷дÈëword - Java / Java EE

ÎÒÓÃioÀ´²Ù×÷word ¾ÍÊÇÁ½¸öwordÎļþÄÚÈÝҪдÈëµÚÈý¸öwordÖУ¬µ«ÊÇÖ»¼ûwordµÃ´óСÊDZäÁË£¬¿ÉÊÇ´ò¿ªºó²¢¿´²»¼ûÀïÃæµÄÄÚÈݰ¡¡£ÖªµÀµÄÄÜ·ñ˵һÏÂ
ÊDz»ÊÇÕýÈ·µÄ¶ÁÈ¡ºÍдÈëÁËÊý¾Ý
»òÕßÊDZàÂëÎÊÌâ

ÄѵÀÕæµÄ¾ÍûÓж¥ÏÂÂ𣿣¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿

ÒýÓÃ
ÎÒÓÃioÀ´²Ù×÷word ¾ÍÊÇÁ½¸öwordÎļþÄÚÈÝҪдÈëµÚÈý¸öwordÖУ¬µ«ÊÇÖ»¼ûwordµÃ´óСÊDZäÁË£¬¿ÉÊÇ´ò¿ªºó²¢¿´²»¼ûÀïÃæµÄÄÚÈݰ¡¡£ÖªµÀµÄÄÜ·ñ˵һÏÂ


ûÓдúÂ룬²»ºÃ˵£¡
ÎÒ¾õµÃÖ÷ÒªÊÇ¿´Á÷ÓÐûÓÐÕýÈ·¹Ø±Õ£¡

´úÂëÊÇÕâÑùµÄ£º
File file = new File("D:/Tools/apache-tomcat-5.5.28/webapps/j2w/upload/word.doc");
File file1 = new File("D:/Tools/apache-tomcat-5.5.28/webapps/j2w/upload/word1.doc");
File file2 = new File("D:/Tools/apache-tomcat-5.5.28/webapps/j2w/upload/word2.doc");
if (!file1.exists()) {
file1.createNewFile();
}
if (!file2.exists()) {
file2.createNewFile();
}
InputStream in = null;
InputStream in2 = null;
OutputStream out = null;
try {
// Ò»´Î¶ÁÒ»¸ö×Ö½Ú
in = new FileInputStream(file1);
in2 = new FileInputStream(file1);
out = new FileOutputStream(file);

SequenceInputStream sis = new SequenceInputStream(in, in2);

byte[] b = new byte[1];
while ((sis.read(b)) != -1) {
out.write(b);
}

out.flush();
in.close();
out.close();
} catch (Exce


Ïà¹ØÎÊ´ð£º

myeclipse+mysqlµÄÅäÖÃÎÊÌâ - Java / Eclipse

ÎÒÊǸöÐÂÊÖ£¬Íû¸ßÊÖ½â´ð
ÎÒÏÖÔÚÒѾ­°²×°ÁËmysql£¬Ò²ÓÐmysqlµÄjdbc¡£µ«ÎÒÔõôÅäÖú󣬲ÅÄÜÔÚMyEclipseÀï²Ù×÷mysqlÄØ£¿Çë¸ßÊÖ˵Ïêϸµã
´ò¿ªMyeclipse----window---open perspective---MyEclipse database explorer-- ......

c/sºÍb/sÖ®¼äÔõôͨѶ. - Java / Web ¿ª·¢

ÔھƵê¹ÜÀíϵͳÖÐ,ÓÐÒ»¸ö¶ÔÄÚµÄϵͳ,¹©Ç°Ì¨·þÎñÔ±ºÍ¾­ÀíʹÓÃ
»¹ÓÐÒ»¸ö¾ÍÊǶÔÍâ,Èÿͻ§¿ÉÒÔÔÚÍøÉÏÔ¤¶©·¿¼ä,
ËüÃÇÖ®¼äÊÇÔõôͨѶµÄ.?µ±ÎÒÌá½»Ô¤¶©·¿¼äÐÅÏ¢µÄʱºò,
ÔÚ¶ÔÄÚµÄϵͳÖÐ,ÈçºÎÖªµÀÎÒÒѾ­Ìá½»ÁËÐÅÏ¢¹ýÈ¥.Ê¹Ç ......

jspÐÂÊÖ,Çë½Ì¸÷λ? - Java / Web ¿ª·¢

³ÌÐòÈçÏÂ:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page language="java" %>
<%@ page import="com.mysql.jdbc.Driver" %>
<%@ page import ......

javaÖд«Öµ - Java / Web ¿ª·¢

ÔõôÑù½«id´«¹ýÈ¥°¡£¿£¿£¿ÊǼòµ¥µÄ´«¡£¡£¡£ÔÚµØÖ·À¸ÖÐдidºÅ
LZ ºÃÓÄĬ£¡²»ÖªµÀÄãµÄÒâ˼£¿

ÊÇÏë°ÑID ´«µ½ACTION ? ͨ¹ýURl id=?

²»¹»Ïêϸ ±ðÈ˲»ÖªµÀÔõÑù°ïÄã

../XXXXX.do?id=XXXX&id2=XXXXX

......

mysqlµÄ¸üÐÂÓï¾ä - Java / Java SE

id name datetime
1 a 2010-05-13 10:15:00
2 b 2010-05-14 09:10:00
3 d 2010-05-14 10:10:00
ÈçºÎ½«¾àÀëĿǰ×î½üµÄÄǸö¼Ç¼µÄname ¸üÐÂΪ¡°x¡±ÄØ
лл¿© °¡ ºÇºÇ
update table_n ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ