Java Reference
In-Depth Information
content.indexOf('=') + 1).trim().replace("\"",
"");
}
}
return null;
}
Running the
fileupload
Example
You can use either NetBeans IDE or Ant to build, package, deploy, and run the
fileup-
load
example.
To Build, Package, and Deploy the
fileupload
Example Using NetBeans IDE
1. From the File menu, choose Open Project.
2. In the Open Project dialog, navigate to:
tut-install
/examples/web/
3. Select the
fileupload
folder.
4. Select the Open as Main Project checkbox.
5. Click Open Project.
6. In the Projects tab, right-click
fileupload
and select Deploy.
To Build, Package, and Deploy the
fileupload
Example Using Ant
1. In a terminal window, go to:
tut-install
/examples/web/fileupload/
2. Type the following command:
ant
3. Type the following command:
ant deploy
To Run the
fileupload
Example
1. In a web browser, type the following URL:
http://localhost:8080/fileupload/
The File Upload page opens.
2. Click Browse to display a file browser window.
3. Select a file to upload and click Open.