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 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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Get full path from html:file" Watch "Get full path from html:file" New topic
Author

Get full path from html:file

Ann Maria
Greenhorn

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
document.formname.filetagname.value
Damian Lopez
Greenhorn

Joined: Jul 26, 2005
Posts: 17
Hi,
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!?
 
Don't get me started about those stupid light bulbs.
 
subject: Get full path from html:file
 
Similar Threads
html:file problem
Struts Upload Tag
File Upload
Getting the full pathname from FormFile
Struts File tag