Read Only
We often get in trouble with small problems like making the things read only.
This is very useful to restrict the concurrency issues it could be a request or a result set or a data entry like HTML.
Even some times we want to make the files read only too on the fly.
This sample code makes a file read only.
import java.io.File;
public class ReadOnlyExp {
public static void main(String[] args) {
File file=new File("c:\\MyFile");
file.setReadOnly();
}
}
How to make the HTML element read only.
READONLY = true;
You can also use DISABLED=”true” for any HTML Element.
Hope this was useful.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment