javaÖÐÈçºÎʵÏÖÎļþ´ò°üÉÏ´«ÒÔ¼°×Ô¶¯½âѹ
ÎÒÃÇÔÚ¿ª·¢ÏîÄ¿µÄʱºò,ÌرðÊÇB/Sϵͳ,¾³£»áÓöµ½ÒªÅúÁ¿ÉÏ´«ÎļþµÄÐèÇó,¶Ô´ËÐèÇóÒ»°ãÓÐÈçϼ¸¸ö½â¾ö·½°¸(ÒÔB/SΪÀý):
1. ÔÚ¿Í»§¶ËÌṩÎļþÉÏ´«½Ó¿Ú,Ò»´ÎÉÏ´«Ò»¸öÎļþ
2. Ò»´ÎÉÏ´«¶à¸öÎļþ
3. ½«ÐèÒªÉÏ´«µÄÎļþ´ò°ü,Ò»´ÎÉÏ´«µ½·þÎñÆ÷,²¢×Ô¶¯½âѹµ½Ö¸¶¨Ä¿Â¼
1,2·½·¨¶¼Óм¸¸öºÜÃ÷ÏԵIJ»×ã,Óû§¹¤×÷Á¿´ó,ÎļþÈç¹û¹ý´ó,ÔÚÍøÂç»·¾³ÖÐ,ÉÏ´«µÄЧÂʵÍÏÂ,ÁíÍâÎļþÔÚ²»Í¬µÄĿ¼,ÊÇÎÞ·¨½øÐÐÒ»´ÎÑ¡ÔñÉÏ´«µÄ.ËùÒÔ´ò°üÉÏ´«¾Í³ÉΪÁ˱ȽÏÁ÷ÐеÄÅúÁ¿ÎļþÉÏ´«µÄ½â¾ö·½°¸,ÏÂÃæ¾ÍÀ´Ò»ÆðÌÖÂÛÒ»ÏÂÔÚjavaÖÐÈçºÎʵÏÖ:
Ö÷Òª¹¦ÄÜÐèÇó:
a. ÉÏ´«Îļþ,½«Îļþ±£´æÔÚ·þÎñÆ÷
b. ¶ÁÈ¡·þÎñÆ÷ÉÏѹËõÎļþ,½âѹµ½Ö¸¶¨Ä¿Â¼
ÏÂÃæ¾ÍÕâÁ½¸öÐèÇó˵˵±àÂëʵÏÖ
ÉÏ´«: ʹÓÃÁËsmartupload¿ªÔ´³ÌÐò
1. IUpload.java - (ÉÏ´«½Ó¿Ú,ÐèÒªjsmartupload.jar°ü)
import java.io.IOException;
import java.util.Hashtable;
import javax.servlet.ServletException;
import com.jspsmart.upload.File;
import com.jspsmart.upload.Files;
import com.jspsmart.upload.Request;
public interface IUpload {
//Ö»ÄÜÉÏ´«Ò»¸öÎļþ
public File getSingleUploadFile() throws MultiFileException,
UploadFileIsMissingException;
//ÅжÏÎļþÊÇ·ñ¶ªÊ§
public boolean exists(File file);
//±£´æÎļþ
public int save(String targetFileName, int arg1) throws ServletException,
IOException;
//µÃµ½¾ø¶Ô±£´æ·¾¶
public String getAbsoluteSavePath();
//µÃµ½ÇëÇó
public Request getRequest();
//µÃµ½Îļþ
public Files getFiles();
//´¦ÀíËùÓвÎÊý,´¦ÀíÒ³ÃæÌá½»µÄÆäËû±íµ¥Êý¾Ý
public Hashtable dealAllPara() throws Exception;
Ïà¹ØÎĵµ£º
Executing a CommandSee also e90 Reading Output from a Command.
try {
// Execute a command without arguments
String command = "ls";
Process child = Runtime.getRuntime().exec(command);
// Execute a command with an argument
command = "ls /tmp"; ......
1¡¢StringÊÇ×î»ù±¾µÄÊý¾ÝÀàÐÍÂð?
»ù±¾Êý¾ÝÀàÐÍ°üÀ¨byte¡¢int¡¢char¡¢long¡¢float¡¢double¡¢booleanºÍshort¡£
java.lang.StringÀàÊÇfinalÀàÐ͵ģ¬Òò´Ë²»¿ÉÒԼ̳ÐÕâ¸öÀà¡¢²»ÄÜÐÞ¸ÄÕâ¸öÀࡣΪÁËÌá¸ßЧÂʽÚÊ¡¿Õ¼ä£¬ÎÒÃÇÓ¦¸ÃÓÃStringBufferÀà
2¡¢int ºÍ Integer ÓÐʲôÇø±ð
Java ÌṩÁ½ÖÖ²»Í¬µÄÀàÐÍ£ºÒýÓÃÀàÐͺÍÔʼÀàÐÍ£¨ ......
Ãô½Ý¿ª·¢µÄÀíÄîÒѾÁ÷ÐÐÁ˺ܳ¤µÄʱ¼ä£¬ÔÚÃô½Ý¿ª·¢ÖеĿª·¢µü´ú½×¶ÎÖУ¬ÎÒÃÇ¿ÉÒÔͨ¹ýÎå¸ö²½Ö裬À´ÓÐЧµÄÌá¸ßÕû¸öÏîÄ¿µÄ´úÂëÖÊÁ¿¡£
JavaÏîÄ¿¿ª·¢¹ý³ÌÖУ¬ÓÉÓÚ¿ª·¢ÈËÔ±µÄ¾Ñé¡¢Java´úÂë±àдϰ¹ß£¬ÒÔ¼°È±·¦Í³Ò»µÄ±ê×¼ºÍ¹ÜÀíÁ÷³Ì£¬ÍùÍùµ¼ÖÂÕû¸öÏîÄ¿µÄ´úÂëÖÊÁ¿½Ï²î£¬ÄÑÓÚά
»¤£¬ÐèÒª½Ï´óµÄ²âÊÔͶÈëºÍÖÜÆÚµÈÎÊÌâ¡£ÕâЩÎÊÌâÔÚÒ»¸ ......
Ãô½Ý¿ª·¢Öбàд¸ßÖÊÁ¿Java´úÂë
2010-03-08 10:32
|
1709
´ÎÔĶÁ
|
¡¾ÒÑÓÐ9
ÌõÆÀÂÛ¡¿·¢±íÆÀÂÛ
À´Ô´£º±ÈÌØÍø À´Ô´£ºIBM/ÍõÓÀ¿ý
|
Êղص½ÎÒµÄÍøÕª
Ãô½Ý¿ª·¢µÄÀíÄîÒѾÁ÷ÐÐÁ˺ܳ¤µÄʱ¼ä£¬ÔÚÃô½Ý¿ª·¢ÖеĿª·¢µü´ú½×¶ÎÖУ¬ÎÒÃÇ¿ÉÒÔͨ¹ýÎå¸ö²½Ö裬À´ÓÐЧµÄÌá¸ßÕû¸öÏîÄ¿µÄ´úÂëÖÊÁ¿¡ ......
ÔÎijö´¦£ºhttp://java.csdn.net/a/20100308/259219.html
Ãô½Ý¿ª·¢µÄÀíÄîÒѾÁ÷ÐÐÁ˺ܳ¤µÄʱ¼ä£¬ÔÚÃô½Ý¿ª·¢ÖеĿª·¢µü´ú½×¶ÎÖУ¬ÎÒÃÇ¿ÉÒÔͨ¹ýÎå¸ö²½Ö裬À´ÓÐЧµÄÌá¸ßÕû¸öÏîÄ¿µÄ´úÂëÖÊÁ¿¡£
JavaÏîÄ¿¿ª·¢¹ý³ÌÖУ¬ÓÉÓÚ¿ª·¢ÈËÔ±µÄ¾Ñé¡¢Java´úÂë±àдϰ¹ß£¬ÒÔ¼°È±·¦Í³Ò»µÄ±ê×¼ºÍ¹ÜÀíÁ÷³Ì£¬ÍùÍùµ¼ÖÂÕû¸öÏîÄ¿µÄ´úÂëÖÊÁ¿½Ï²î£¬ÄÑÓ ......