// File Upload Module // IT Cannot Handle Nested Data // OR Internationalized Content (SUCH AS NON LATIN-1 Filenames).
//// designed by Mouse King, Last Modified On August 2nd, 2000 // File Upload A File // You Can Customize The File Size, Now IT IS 5M // The FTP Server Target Path IS / USR / local / jakarta-tomcat / bin.
Package BBS;
Import java.io. *; import java.util. *; import javax.servlet. *; import javax.servlet.http. *;
Public class uploadtest extends httpservlet {string rootpath, surcessMessage
Static Final Int Max_size = 102400; Public Void Init (ServletConfig Config) Throws servletexception {super.init (config);
public void doGet (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {response.setContentType ( "text / html"); PrintWriter out = new PrintWriter (response.getOutputStream ()); out.println ( ""); Out.println ("