aspose file tools*
The moose likes Struts and the fly likes [struts 1]  FormFile field in browser not refilled with file path Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "[struts 1]  FormFile field in browser not refilled with file path" Watch "[struts 1]  FormFile field in browser not refilled with file path" New topic
Author

[struts 1] FormFile field in browser not refilled with file path

Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2046
Hi,

I have a:
----------------
> form class.
FormFile photo;

> jsp
the corresponding html:file
---------------


I am successfully receiving the file in the server.

However, when the page is forwarded back to the same page (e.g. after successful transaction, or to display that one of the input fields failed validation), the FormFile file path box is not repopulated with the selection that the user previously did.

It is quite cumbersome for user to re-select file, especially when there are many FormFile fields in the page.

(I already googled for samples and all are the same with my codes.)

Is this a limitation on FormFile of struts 1 that we should accept, or am I doing something wrong? Any other solutions if this is a limitation?
Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2046
hi, does anyone have an idea on this? i will appreciate it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [struts 1] FormFile field in browser not refilled with file path
 
Similar Threads
Upload file using Struts
how to store image object
how to render the path in struts html file attribute
Hiding the full path of the file While Uploading in struts
Uploading Multiple Files Using html:file