¼³Ä¡´Â ´ÙÀ½°ú °°ÀÌ 4´Ü°è·Î ÀÖ°í, ºñ±³Àû ½±°í °£´ÜÇÕ´Ï´Ù.
¶óÀ̺귯¸®ÆÄÀÏÀº 'WEB-INF/lib' µð·ºÅ丮¿¡ º¹»çÇØ ³Ö½À´Ï´Ù. ±×¸®°í /uploadprogress¶ó´Â µð·ºÅ丮¸¦ ¸¸µé°í, ±×°÷¿¡ ¾ÖÇø´ ÆÄÀÏÀ» Ç®¾î ³Ö½À´Ï´Ù.
¾÷·Îµå ÆûÀÌ ÀÖ´Â ¼Ò½º¸¦ ¿¾î¼, Àû´çÇÑ °÷¿¡ ´ÙÀ½°ú °°Àº ¼Ò½º¸¦ ³Ö¾î ¾ÖÇø´À» ³Ö½À´Ï´Ù.
<applet code="mty.uploadprogress.Progress.class" codebase="uploadprogress" name="progressapplet" width="361" height="32" id="progressapplet" MAYSCRIPT> </applet>
codebase°ªÀº Àû´çÇÏ°Ô º¯°æÇØ ÁÖ¾î¾ß ÇÕ´Ï´Ù. Áï Html¹®¼¿¡¼ ¾ÖÇø´ ¾ÐÃàÀ» Ǭ µð·ºÅ丮ÀÇ °æ·Î(»ó´ë°æ·Î ¶Ç´Â Àý´ë°æ·Î)¸¦ Àû¾îÁÖ¾î¾ß ÇÕ´Ï´Ù. ¿¹·Î ¾ÐÃàÀ» /uploadprogress¿¡ Ç®¾ú°í, ¹®¼°¡ /doc/uploadform.html ÀÖ´Ù¸é, ../uploadprogress¶Ç´Â /uploadprogress¶ó°í Àû¾î¾ß ÇÕ´Ï´Ù.
width¿Í heightÀÇ °ªÀ» ¿øÇϴµ¥·Î Àû´çÇÏ°Ô º¯°æÇÏ¿© ÁÖ½Ã¸é µË´Ï´Ù.
Æû¿¡ onSubmit¼Ó¼ºÀÌ ¾ø´Â°æ¿ì´Â
<form name="addForm" method="post" action="uploadaction.jsp" enctype="multipart/form-data"
onSubmit="try { document.applets['progressapplet'].connect(); } catch(e) { }" target="uplaod">
Æû¿¡ onSubmitÀÌ ÀÖ´Â °æ¿ì´Â FormÀÌ ½ÇÇàµÇ±â Àü¿¡(return true;ÄÚµå Àü¿¡) ´ÙÀ½°ú °°Àº ¼Ò½º¸¦ ³Ö½À´Ï´Ù.
try {
document.applets['progressapplet'].connect();
} catch(e) {
}
ÆÄÀÏÀ» ¾÷·ÎµåÇÏ´Â ¼Ò½º¸¦ ¿¾î¼, ½ÇÁ¦·Î ¾÷·Îµå¸¦ Çϱâ Àü¿¡, ¾÷·ÎµåÇÏ´Â ÇÁ·Î±×·¥(¶óÀ̺귯¸®)¿¡ ÁöÁ¤ÇÏ´Â 'request'°ªÀ» º¯°æÇÏ¿© ÁöÁ¤ÇÏ¿© ÁØ´Ù. Áï ´ÙÀ½°ú °°ÀÌ µÎºÎºÐÀ» ¼öÁ¤ÇÏ¿© ÁÖ¸é µË´Ï´Ù.
ù°·Î, <%@ page import=" ... , mty.uploadprogress.UploadProgress"%>·Î½á, ÆäÅ°ÁöÀ̸§À» ImportÇÏ¿© ÁÖ°í,
±× ´ÙÀ½, request´ë½Å UploadProgress.getServletRequest(request)À» »ç¿ëÇÏ¿© ¾÷·Îµå ÇÏÀ̺귯¸®¿¡ Á¦°øÇÏ¿© ÁÖ¸é µË´Ï´Ù.
¿¹1) Jakarta commons fileuploadÆÐÅ°Áö¿¡¼´Â
upload.parseRequest(request);¶ó´Â ºÎºÐÀ»
-> upload.parseRequest(UploadProgress.getServletRequest(request)); À¸·Î ¹Ù²Ù¾î ÁÖ¾î¾ß ÇÕ´Ï´Ù.
¿¹2) com.orelly.servletÆäÅ°Áö¸¦ »ç¿ëÇϽô ºÐµéÀº
MultipartRequest multi = new MultipartRequest( request, webroot+"WEB-INF/temp", sizeLimit, new DefaultFileRenamePolicy() ); ¶ó´Â ºÎºÐÀ»
->MultipartRequest multi = new MultipartRequest( UploadProgress.getServletRequest(request), webroot+"WEB-INF/temp", sizeLimit, new DefaultFileRenamePolicy() ); À¸·Î ¹Ù²Ù¾î ÁÖ¾î¾ß ÇÕ´Ï´Ù.