Blurring input field in Servlet.
I am just puzzled with this situation where i am populating form fields in a servlet form data base and when the same is displayed to user he can choose values from it and fill the other columns. However the displayed values are coming as input values from servlet and remains active this should be deactivated or blurred to safeguard its accidental tempering by user. How can i disable it ?
Any suggestions to solve this will be highly appreciated.
document.getElementById('formFieldID').disabled = true;
You shouldn't be writing HTML with a servlet. You should be putting the values into a bean and passing that bean to a JSP to do the HTML. The bean could indicate which values are output and which are input or, more commonly, the JSP would be hard coded to support that process.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)