This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Struts and the fly likes Get 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 Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Get full path from html:file" Watch "Get full path from html:file" New topic

Get full path from html:file

Ann Maria

Joined: Sep 09, 2005
Posts: 27
How to get full path(d:\abc\xyz.gif) from html:file, while the return type of getFile() is Formfile.
G.T. Reddy
Ranch Hand

Joined: Jun 25, 2002
Posts: 45
document.[formName[.[filetag name].value
G.T. Reddy
Ranch Hand

Joined: Jun 25, 2002
Posts: 45
Damian Lopez

Joined: Jul 26, 2005
Posts: 17
and do you know how to display the name in the html:file text field of the uploaded file after the jsp reloads?
I cant see it displayed, even that looking at the html source code the value attribute of the input file is filled ok!?
Consider Paul's rocket mass heater.
subject: Get full path from html:file