File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hiding the full path of the file While Uploading in struts

 
Ram Padyala
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 456
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for Reply.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic