Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting the full pathname from FormFile

 
Clarence Dyho
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello.

I used the <html:file> tag provided by Struts for file upload. However, I need to check if the file actualy exist before I do the transfer so I need the full path and file name. Could anyone tell me how I could get this? The getFileName() method of FormFile only returns the base file name.

I read somewhere that the Jakarta commons upload class such as the CommonsMultipartRequestHandler can be used to get the full file name. Can't seem to make it work and I can't find any examples. Also tried to look for threads with similar subject here but most of them have no replies.

Thank you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic