This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design 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