java io ²Ù×÷дÈëword - Java / Web ¿ª·¢
public static void main(String[] args) throws Exception {
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 (Exception e) {
e.printStackTrace();
return;
}
}
ÎÊÌâÊÇÕâÑùµÄ£º
¹²ÓÐÈý¸öword
A.doc¡¢B.doc¡¢C.doc
A£¬B¶¼ÓÐÖµ¡£CÊǿյġ£ÎÒÏë°ÑA£¬BµÄÄÚÈݸøC¡£µ«ÊÇÃ÷ÏԵĿ´µ½ÁËCµÄÎļþ´óСµÄÈ·ÊDZä´óÁË£¬µ«ÊÇÀïÃæµÄÄÚÈÝÖ»ÓÐAµÄ»òÕßÊÇBµÄ¡£
»¹ÓÐÓÃ×·¼ÓµÄ·½Ê½¡£ÎÒÒ²ÊÔ¹ýÁË£¬»¹ÊDz»ÐС£ÖªµÀµÄÀÏÄñ¶¥Ò»Ï£¬½â¾öÁ¢¿ÌÉ¢·Ö
ÎÒÏë°ÑA¡£doc£¬B¡£docµÄÄÚÈÝдÈëC¡£doc£¬µ«ÊÇûÓгɹ¦£¬¿ÉÒÔ¿´µ½CµÄÎļþ´óСÃ÷ÏÔ±ä´ó£¬µ«ÊÇÀïÃæµÄÄÚÈݲ»ÕýÈ·
Ïà¹ØÎÊ´ð£º
JSPÒ³ÃæÖÐÓжà¸öradio°´Å¥
JSPÒ³Ãæ½«²ÎÊýPOST¸øservlet
ÒªÇóÈçÏÂ;
1.Ñ¡ÔñÒ»¸öradio£¬µ÷ÓÃservlet servletÖиù¾Ý²ÎÊýµ÷ÓÃÆäËû½Ó¿Ú£¬³ý·ÇÑ¡ÖиÃradio²¢µã»÷JSPÖеÄʵР......
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& ......
È磺 @superwaring("unchecked");
Õâ¸öÀïÃæ¶¼¿ÉÒÔÈ¡ÄÄЩֵ°¡£¬»¹ÓÐÀàËÆµÄ @superwaring±êÇ©ÓÐÄÄЩ°¡
ûÓùý¡£¡£
¿´jeeµÄapi
javax.persistenceÀï
@superwaring("unchecked");Ö»ÊǺöÂÔ ......
´ó¼ÒºÃ£¬ÎÒÏÖÔÚÓÐÒ»¸öÓÃaspдµÄÁÄÌìÊÒ£¬ÏÖÔÚµÄÏëÌí¼ÓÒ»¸ö¹¦ÄÜ£¬¾ÍÊǵ±ÓÐÈËÉÏÏßµÄʱºò£¬·¢³öÌáʾ£¬±ÈÈçÉùÒôÏìһϣ¬ÏÖÔÚÏëÓÃjavaʵÏÖÕâ¸ö¹¦ÄÜ£¬ÇëÎÊ´ó¼ÒÔõôʵÏÖ£¿
ллÁË£¬ÎÒ»á¼Ó·ÖµÄ
aspºÍjavaÕûºÏµ½Ò»ÆðÈ¥£¿ºÎ±Ø ......
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 ......