-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Justin Jaynes wrote: | Well, | | As Yaov said this list was ok for JSP development, | here I go. | | I am having a great time using Tomcat on SuSE 9.1 with | SSL and all is working fine. | | I would like users of my web applications to be able | to upload image files to directories that Tomcat is | serving files out of. This must happen THROUGH the | web application. | | Therefore I have two questions: | | 1. How would I get a file off a remote users hard | drive (which they specify by typing the file name and | location into a text box in a form) to move to my | server and be renamed (using my own file naming | convention)? | | 2. How do you open a Browse File dialog box in a web | browser (I would guess this would be easily done using | Java Script. may not be an appropriate question here, | so only answer if you happen to have the answer on | hand) If possible, pointing me to a location on the | web where this is done and the script is readily | apparent, would be a fine answer. | |
what you are asking is not jsp specific. all you need is the html element
<INPUT TYPE="file" ...>
set within a html form.
then you need to process the form accordingly when it is submitted.
you might want to check out jakarta commons's FileUpload utilities to help with the processing.
Kevin
| | | | __________________________________ | Do you Yahoo!? | New and Improved Yahoo! Mail - Send 10MB messages! | http://promotions.yahoo.com/new_mail | | --------------------------------------------------------------------- | To unsubscribe, e-mail: [EMAIL PROTECTED] | For additional commands, e-mail: [EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBUMvrJ7Xd6MyEGu4RAkH4AKDWmr1ynQ3i0DR+/HiPbT2ifQNwUACfaJKP 9rmInme5NXvJuYolQ4rXIqo= =JY3a -----END PGP SIGNATURE-----
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
