I want to create a Flash page which allows user to upload files. The scripting language for the server would be JSP using tomcat.
Can any tell me where I could find a tutorial in this matter, coz...I see php and flash interaction all around the net?? If some1 could post the code on JSP for doing this it would hep me completely, since I have already done the Flash 8 upload code as follows:

Code:
System.security.allowDomain("http://localhost", "127.0.0.1");
import flash.net.FileReference;
var listener:Object = new Object();
listener.onSelect = function(selectedFile:FileReference):Void {
statusArea.text += "Attempting to upload " + selectedFile.name + "\n";
selectedFile.upload("http://localhost:8084/LoginTest/upload.jsp");
};
listener.onOpen = function(selectedFile:FileReference):Void {
statusArea.text += "Uploading " + selectedFile.name + "\n";
};
listener.onHTTPError = function(file:FileReference, httpError:Number):Void {
imagePane.contentPath = "error";
imagePane.content.errorMSG.text = "HTTPError number: "+httpError +"\nFile: "+ file.name;
}
listener.onIOError = function(file:FileReference):Void {
imagePane.contentPath = "error";
imagePane.content.errorMSG.text = "IOError: "+ file.name;
}
listener.onSecurityError = function(file:FileReference, errorString:String):Void {
imagePane.contentPath = "error";
imagePane.content.errorMSG.text = "SecurityError: "+SecurityError+"\nFile: "+ file.name;
}
listener.onComplete = function(selectedFile:FileReference):Void {
statusArea.text += "Upload finished.";
};
var imageFile:FileReference = new FileReference();
imageFile.addListener(listener);
uploadBtn.onPress = uploadImage;
imagePane.addEventListener("complete", imageDownloaded);
function uploadImage(event:Object):Void {
imageFile.browse([{description: "Bin Files", extension: "*.bin"}]);
}