Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

How to make a <html:file> as a readonly - not a disabling.

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi we are using <html:file> - file upload component of struts. And the text box associated with this component manually allowing the input from the user in IE browser but in Firefox it is not happening
So how to make a read only text box for this component?
 
Ranch Hand
Posts: 329
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Srinivasa,
What is the actual problem? Is the Firefox html:file not working? OR You tried to disable html:file and it is still working in IE?
If you are trying to disable html:file using disable="true" it should work as intended in either browsers. Please explain.
 
Srinivasa Rao Ammina
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here the issue is in Firefox this component behaves correcty that means in the text field of the file upload component we are unable to manually input the file name.
But the case is not the same with IE means user can type what ever file name he wants whether it actually exists or not because of this during that it is giving exceptions.
So I want to make the file upload components text box as read only so that user doesn;t tamper the file names.
 
Lasagna is spaghetti flvored cake. Just like this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic