I have a form with a text field for the user to enter a filename. I would
like to make this easier for the user by giving them a Browse button, so I
thought I would try using html:file instead of html:text.
Note, I do not want to upload the contents of a file, but just want the
filename, including the full path. In order to achieve this, I am NOT
specifying
enctype=multipart/form-data
in the html:form tag.
I am running into 2 separate problems:
1. even though the full path filename is displayed in the field after
browsing and picking a file, the corresponding form bean property is
populated with the filename only, and the path is discarded -- is there any
way for me to get the full path back?
2. pre-population of this field is not working. The form bean property is
definitely set correctly - in fact, if I simply change the control from
html:file to html:text, then prepopulation works correctly. Is there any way
to pre-populate an html:file control ?
Thanks,
Charlie
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]