aspose file tools*
The moose likes Struts and the fly likes Hiding the full path of the file While Uploading in struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Hiding the full path of the file While Uploading in struts" Watch "Hiding the full path of the file While Uploading in struts" New topic
Author

Hiding the full path of the file While Uploading in struts

Ram Padyala
Greenhorn

Joined: Sep 28, 2006
Posts: 9
Hi,
I am uploading the files Using Struts FormFile .
When i press Browse button it will display the full path in the Textfield
, Like C:\...But iwnt to display only file name here.
Is there anyway to do this using tags in struts.

Thanks
Jan Groth
Ranch Hand

Joined: Feb 03, 2004
Posts: 456
maybe with weired javascript tricks, but i'd rather say it is not possible.

AFAIK the inherent html-form-upload mechanism relies on the filepath data, whereelse should it know it from?

AND:

you are about to change the standard behaviour of a standard html-button. each and every upload button in a webapp works like this. in terms of user-friendlyness i definitely recommend not change it (should it be possible)

:-)

jan
Ram Padyala
Greenhorn

Joined: Sep 28, 2006
Posts: 9
Thanks for Reply.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hiding the full path of the file While Uploading in struts