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

input file element

 
ravindra patil
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI ,
on my jsp i have file element, when i select a file it shows me whole path of selected file in the input box but when i see that value using alert it shows me only name of this file , why so ?

my problem is i have included 2 jsps in one jsp , on first jsp i am selecting file but not submitting the form ,then i click on second command which opens second jsp closing first jsp ,when i closes 2nd jsp i need to open first jsp on close event of second jsp with selected file in the input box , how can i retain this value of file



Waiting for answer

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64629
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't. For security purposes, the file path is not included.

By the way, please avoid posting phrases such as
Waiting for answer
as it's just annoying. It's obvious that you are waiting for an answer.
 
ravindra patil
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok can't i set default value for file element i am reading it on google its again saying 'SECURITY REASONS' is there alternative for this ...i am really worried now
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64629
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, there is no alternative.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic