我想用smartupload上传文件到指定的目录,该目录视用户的不同而变化。也就是不同用户保存到不同的文件目录下,如何改jsp页面中的代码那?
<jsp:useBean id="mySmartUpload" scope="page" class="com.jspsmart.upload.SmartUpload" />
<% // Variables
int count=0;         // Initialization
mySmartUpload.initialize(pageContext); mySmartUpload.setTotalMaxFileSize(10000000); // Upload
mySmartUpload.upload();//String =new String(request.getParameter("").getBytes("ISO8859_1"));
try { // Save the files with their original names in the virtual path "/upload"
// if it doesn't exist try to save in the physical path "/upload"
count = mySmartUpload.save(f0);

// Save the files with their original names in the virtual path "/upload"
// count = mySmartUpload.save("/upload", mySmartUpload.SAVE_VIRTUAL); // Display the number of files uploaded 
out.println(count + " 个文件成功上传。"); } catch (Exception e) { 
out.println(e.toString());
}

%>