File Uploads in JSF
- An example that uploads a JPEG image and displays it:
https://redrock.d.umn.edu:8443/upload_resume.
- This makes use of code from
<corejsf-examples>/ch12/fileupload
- Here is the full source for the web app:
upload_resume.zip
- Here is the form with the upload component:
uploadResume.jsp
- The user's authenticated login name is used to name the uploaded
file.
- Note the tag library with prefix "corejsf" and the
corejsf:upload tag.
- Here is the page using the uploaded file:
viewResume.jsp
- There is no standard upload component in JSF 1.1 (nor,
apparently, in 1.2), so corejsf:upload is a custom
component.