File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes How to make a <html:file> as a readonly - not a disabling. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Struts
Reply Bookmark "How to make a <html:file> as a readonly - not a disabling." Watch "How to make a <html:file> as a readonly - not a disabling." New topic
Author

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

Srinivasa Rao Ammina
Greenhorn

Joined: Jan 24, 2012
Posts: 20
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?
Shankar Tanikella
Ranch Hand

Joined: Jan 30, 2011
Posts: 278

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.


Have Fun with Java
little,little.. little by little makes a lot..
Srinivasa Rao Ammina
Greenhorn

Joined: Jan 24, 2012
Posts: 20
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.
 
 
subject: How to make a <html:file> as a readonly - not a disabling.
 
Threads others viewed
Pressing enter key submits page
javascript/html
Preventing direct text entry to form:file
How can i restrict the selecting file type to XML and TXT in file upload..
html:file width
MyEclipse, The Clear Choice