This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes getting full path from html:file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "getting full path from html:file" Watch "getting full path from html:file" New topic

getting full path from html:file

john mattucci
Ranch Hand

Joined: Nov 03, 2000
Posts: 331
I have the following
<html:form action="" enctype="multipart/form-data">
Please select the file that you would like to upload:<br />
<html:file property="file" /><br /><br />

<html:submit />
Once the user selects a file, in the textbox the full path of the file is shown. I was wondering how can one obtain this value after the user has hit submit?
Thank you all for your time
It is sorta covered in the JavaRanch Style Guide.
subject: getting full path from html:file
Similar Threads
file upload in directory
why we need to provide alias naming to the servlet in web.xml
How can I upload a File using Struts
request paramter problem
Exception is unable to resolve: validation