• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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

 
Ranch Hand
Posts: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi, does anyone have an idea on this? i will appreciate it.
 
Sometimes you feel like a nut. Sometimes you feel like a tiny ad.
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic