This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Jesus Angeles
Ranch Hand
Posts: 2068
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2068
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, does anyone have an idea on this? i will appreciate it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic